找回密码
 注册
搜索
查看: 1002|回复: 4

[讨论] 蓝牙无法初始化,寻求帮助

[复制链接]
发表于 2007-9-16 11:25:41 | 显示全部楼层 |阅读模式
蓝牙芯片是:BC41B143A06-IXB-E4
软件版本是:6226 06B
相关的配置参数是:
/* If using a build from 18.X the buildVersion parameter must be set to TRUE.
   If using a build before 18.X the buildVersion parameter must be set to FALSE. */
kal_bool bchs_buildVersion = KAL_TRUE;
/* If using a BlueCore3-ROM chip the blueCore3ROM parameter must be set to TRUE,
   else it must be set to FALSE                                         */
kal_bool bchs_blueCore3ROM = KAL_TRUE;/*尝试过false,现象依旧*/
/* Set the UART baud rate
   9.6k     0x0027
   19.2k    0x004F
   38.4k    0x009D
   57.6k    0x00EC
   115.2k      0x01D8
   230.4k      0x03B0
   460.8k      0x075F
   921.6k      0x0EBF   
   1382.4k     0x161E                        */
kal_uint16 bchs_baud = 0x0EBF;
/* Set the Crystal frequency
   13Mhz    13000
   16Mhz    16000
   26Mhz    26000
   32Mhz    32000                      */
kal_uint16 bchs_mhz = 26000;//16000
/* Set the device Address                       */
kal_uint16 bchs_btNap = 0x0002;
kal_uint16 bchs_btUap = 0x005b;
kal_uint32 bchs_btLap = 0x123456;
/* Set hostio_map_sco_pcm
   If hostio_map_sco_pcm is TRUE then all attempts
   to open SCO connections map to PCM ports           */
kal_bool bchs_hostio_map_sco_pcm = KAL_TRUE;
/* Set hostio_map_sco_codec If hostio_map_sco_codec
   is TRUE, and if hostio_map_sco_pcm is also TRUE,
   then all SCO connections are routed through
   the built-in audio codec rather than though
   the normal PCM interface.                    */
kal_bool bchs_hostio_map_sco_codec = KAL_FALSE;
/* PIO to enable when built-in codec is
   enabled (PSKEY_CODEC_PIO)
   Mimimum value is 0x0000
   Maximum value is 0x000F                      */
kal_uint16 bchs_codec_pio = 0x000B;
/* Setup Crystal frequency trim
   Mimimum value is 0x0000
   Maximum value is 0x00FF                      */
kal_uint16 bchs_ana_ftrim = 0x0025;
/* Setup Power Table                            */
kal_uint16 bchs_pt_setting[BCHS_MAX_PT_RECORD_NUMBER * 2];
/* Minimum CPU clock speed with PCM port running
   Acceptable values are:
   0 CPU_FAST (full rate)
   1 CPU_SLOW_4M (4 MHz)
   2 CPU_SLOW_2M (2 MHz)
   3 CPU_SLOW_1p024M (1.024 MHz)              */
kal_uint16 bchs_pcm_min_cpu_clock = 0x0000;
/* Setup the maximum number of SCO links
   Mimimum value is 0x0000
   Maximum value is 0x0003                      */
kal_uint16 bchs_max_scos = 0x0002;
/* host wake up settings */
kal_uint16 bchs_wakeup_enable = 0x0001;     /* enable = 0x0001, disable = 0x0004 */
kal_uint16 bchs_wakeup_sleep_delay = 5000;  /* in milliseconds */
kal_uint16 bchs_wakeup_break_length = 150;  /* duration of wake up signals in milliseconds */
kal_uint16 bchs_wakeup_pause_length = 0;    /* duration between wake up signals in milliseconds */
kal_uint16 bchs_wakeup_signal = 0x0052;

上面这些参数有没有问题?或者程序其他部分需要修改?不知道哪位xd调试过,能够指点一二,非常感谢!
发表于 2007-9-16 23:21:05 | 显示全部楼层
想让一款蓝牙正常工作应该怎么配置
,望高手指点一二[em01]
点评回复

使用道具 举报

发表于 2007-9-21 22:01:38 | 显示全部楼层
btmti_config.X文件里的设置对没有?
点评回复

使用道具 举报

 楼主| 发表于 2007-9-22 11:00:27 | 显示全部楼层
btmti_config.X文件里的设置对没有?

btmtk_config是吧,我用的是csr的蓝牙,而这里用到的都是mtk的蓝牙需要配置的。
点评回复

使用道具 举报

发表于 2007-9-23 00:46:49 | 显示全部楼层
印象中,06A以后的codebase不再支持CSR的BT..................
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-2-24 12:12 , Processed in 0.047881 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表