소스코드 참고
http://people.csail.mit.edu/albert/bluez-intro/c404.html#simplescan.c
$apt-get install libbluetooth-dev
simplescan.c
$gcc -o scantest simplescan.c -lbluetooth
$bccmd -t BCSP -d /dev/ttyUSB0 psload -r ./test/csr_4841.psr
Loading PSKEY_LM_TEST_SEND_ACCEPTED_TWICE ... done
Loading PSKEY_PMALLOC_SIZES ... done
...
$hciattach -s 921600 /dev/ttyUSB0 bcsp 921600 noflow
Device setup complete
$hciconfig hci0 reset
$ ./scantest
==> 실행은 되는데 결과가 나오지 않는다.
hcidump로 확인해봐도 hci command는 정상적으로 result를 받는데 inquriy result가 없다.
blueZ를 이용한 hfp 예제를 다운받아 test해보기로 함.
nohands
http://nohands.svn.sourceforge.net/viewvc/nohands/?view=tar
$ apt-get install ed
$ sudo apt-get install autotools-dev
$ sudo apt-get install automake
$ apt-get install libspeexdsp-dev
1: In libhfp/Makefile.am:
Add "-fpermissive" to the AM_CXXFLAGX line.
Next, rerun autogen.sh
2: In include/libhfp/events.h:
Replace all references to Invoke() with this->Invoke() and RegisterDirect() with this->RegisterDirect().
$ ./configure
$ make
$ data/hfconsole
를 실행시켜 놓고 해봐도 동일한 결과
hcitool scan을 해봐도 동일
help.....
sloved :
//PSKEY_ANA_FREQ
&01fe = 6590
이걸 psr에 추가해줘야 해결되는 문제였다.
USB로 되고 BC05로도 되는데 rom type의 chip으로 해결되지 않는 문제
'Programming > android' 카테고리의 다른 글
android Kitkat 을 VMware에 설치해보자 (0) | 2014.07.13 |
---|---|
format_output.h:94:22: error: reference ‘counts’ cannot be declared ‘mutable’ [-fpermissive] (0) | 2013.12.19 |
linker.cpp error (0) | 2013.12.19 |
Android Version & Source tree (0) | 2013.09.13 |
LogFilter : Android Log viewer MFC version (0) | 2013.09.11 |
build error (0) | 2013.07.02 |
blueZ install at ubuntu 12.04 (5) | 2013.04.02 |
linux blueZ install (9) | 2013.03.28 |
android 환경구축 (1) | 2013.03.28 |
[eclipse] Failed to create the Java Virtual Machine (0) | 2013.01.16 |