Milestone FM - xt701 root 了的大大, 可以幫忙做些實驗嗎?

Zewelor compile 了 omapzoom 的 fmapp, 可用來測試 fm radio 的功能.

目前我們在 Milestone 上試了所得的 RSSI level 都是接近 0 的. 想試試在 xt701 上會有甚麼值才是正常.

可以試試在你的 xt701 上跑跑 fmapp 嗎?

現在 Zewelor 正在修改 fmapp 讓幫忙的大大用最簡單的方式, 而又不需要改變閣下手機的 ROM. (因 omapzoom 預設是把 socket 寫在 /etc/misc/hcid/ti_....... 而 bts 則在 /etc/firmware 下.

使用 fmapp 的截圖(我懶懶的使用了 android terminal emulator, 當然可以用 adb):





2010-06-24 14:16 發佈
where is that?
nothize wrote:
Zewelor co...(恕刪)
免責聲明:本文所載資料僅供參考,並不構成投資或人生建議,本人對該資料或使用該資料所導致的結果概不承擔任何責任。
抱歉這麼遲才貼~

x0.nu.mu/~omen/fmapp

這是根據 http://git.omapzoom.org/?p=platform/hardware/ti/omap3.git;a=tree;f=fmradio;hb=HEAD
這裡改動到能編譯的版本.

/etc/firmware/fm*.bts 已改由 /etc/ 中讀取, 應和 xt701 一樣.

socket file 已改由 /data/misc/hcid/ti.. 至 /tmp, 應該不會在手機中建立資料.

由於 fmapp 會在 cwd 建立兩個 log files(fmapp.log 和 fmstack.log), 最好把 fmapp 放到 /tmp, cd 到 /tmp 執行.


這樣設置:

adb push fmapp /tmp
adb shell chmod 755 /tmp/fmapp


執行步驟:

1. 先關 bluetooth
2. 開啟 bluetooth
3. adb shell
cd /tmp
./fmapp
p
g?
>
gr
<
gr

或參看上圖下達指令, 感激!!

另, 知不知道 xt701 有沒有 rfkill1 的?

這樣去檢視:

$ ls /sys/class/rfkill/
rfkill0

^^^^^^ 在 Milestone 上的結果
# ./fmapp
Jun 24 15:33:19 Texas Instruments FM sample & testing application, welcome !
Jun 24 15:33:19 attaching FM to hci0
Jun 24 15:33:19 fm_open_cmd_socket: failed to open device hci0: No such device
Jun 24 15:33:19 main: failed to open cmd socket
# cat fmapp.log
Jun 24 15:29:07 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:29:07 fm_trace_init: hello FM app !
Jun 24 15:29:07 main: failed to open cmd socket
Jun 24 15:29:49 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:29:49 fm_trace_init: hello FM app !
Jun 24 15:29:49 main: failed to open cmd socket
Jun 24 15:32:40 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:32:40 fm_trace_init: hello FM app !
Jun 24 15:32:40 main: failed to open cmd socket
Jun 24 15:33:19 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:33:19 fm_trace_init: hello FM app !
Jun 24 15:33:19 main: failed to open cmd socket
# cat fmstack.log
Jun 24 15:29:07 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:29:07 fm_trace_init: hello FM stack !
Jun 24 15:29:07 fm_open_cmd_socket: failed to open device hci0: Operation not permitted
Jun 24 15:29:07 fm_trace_deinit: FM stack - bye
Jun 24 15:29:49 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:29:49 fm_trace_init: hello FM stack !
Jun 24 15:29:49 fm_open_cmd_socket: failed to open device hci0: Operation not permitted
Jun 24 15:29:49 fm_trace_deinit: FM stack - bye
Jun 24 15:32:40 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:32:40 fm_trace_init: hello FM stack !
Jun 24 15:32:40 fm_open_cmd_socket: failed to open device hci0: No such device
Jun 24 15:32:40 fm_trace_deinit: FM stack - bye
Jun 24 15:33:19 fm_trace_init: ++++++++++++++++++++++++++++++++++++++
Jun 24 15:33:19 fm_trace_init: hello FM stack !
Jun 24 15:33:19 fm_open_cmd_socket: failed to open device hci0: No such device
Jun 24 15:33:19 fm_trace_deinit: FM stack - bye
# ls -l /sys/class/rfkill/
lrwxrwxrwx root root 2010-06-24 23:32 rfkill0 -> ../../devices/platform/wl127x-rfkill.0/rfkill/rfkill0
對不起,我耍白痴,開了 gps 卻以為是 blueteeth....

# cd /tmp
# ./fmapp
Jun 24 15:38:04 Texas Instruments FM sample & testing application, welcome !
Jun 24 15:38:04 attaching FM to hci0
Jun 24 15:38:04 FM RX module selected.
Jun 24 15:38:04 Press 'p' to power on, '*' to switch to FM TX or 'h' for help
p
Jun 24 15:38:23 Powering on FM RX... (this might take awhile)
Jun 24 15:38:31 FM RX powered on
g?
Jun 24 15:39:41 RSSI threshold is 7
>
Jun 24 15:40:09 Seeking up...
Jun 24 15:40:10 Seeked to 89.7 FM
gr
Jun 24 15:40:25 RSSI level is 18
<
Jun 24 15:40:45 Seeking down...
Jun 24 15:40:46 Seeked to 87.5 FM
gr
Jun 24 15:40:50 RSSI level is 8
^CJun 24 15:41:16 breaking...
Jun 24 15:41:16 breaking...
Jun 24 15:41:16 breaking...
Jun 24 15:41:16 RSSI level is 8
Jun 24 15:41:17 FM RX powered off
( 最後面我按下 Ctrl-C )
再執行一次,卻變成這樣:
# ./fmapp
Jun 24 15:45:41 Texas Instruments FM sample & testing application, welcome !
Jun 24 15:45:41 attaching FM to hci0
Jun 24 15:45:42 FM RX module selected.
Jun 24 15:45:42 Press 'p' to power on, '*' to switch to FM TX or 'h' for help
p
Jun 24 15:45:43 Powering on FM RX... (this might take awhile)
Jun 24 15:46:13 _FMC_CORE_HCI_SendFmCommand: failed to send command: Connection timed out
Jun 24 15:46:13 FMSTACK: FMC_CORE_SendWriteCommand: _FMC_CORE_HCI_SendFmCommand Failed (1)
BTHAL_UTILS_Assert: (status == ((FmcStatus)2)) failed in ./fm_stack/HSW_FMStack/stack/common/fmc_core.c at line 459
非常感激 gmtmkm 大大!!!!!

實驗結果和預期配合, 現得知正常的確認頻道的 RSSI level 是大概 18, 就算在不確認頻道也有 8.

注意在測試時 fmapp 要正常退出 power off.

如果出現 connection timed out 或 error, 可試試重啟籃芽.

現在的 FM 研究, 似乎接近尾聲了......剩下來的便要看看接受方便的線路有沒有希望.

內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?