728x90

소스코드 참고

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으로 해결되지 않는 문제


728x90

+ Recent posts