Other Parts Discussed in Thread: AM5708
Tool/software: Linux
Hi,
I'm using bluetooth module Wl18xx with TI firmware from Bluez 5.43 on my board TI AM5708 (Linux kernel 4.4.41).
I'm initializing bluetooth with following command,
hciattach -t 30 -s 115200 /dev/ttyS9 texas 115200 0
with TIInit_11.8.32.bts on "/lib/firmware/ti-connectivity" path.
And enabling "Page Scan" and "Inquiry scan" for hci0
hci0: Type: Primary Bus: UART
BD Address: 50:8C:B1:42:FA:42 ACL MTU: 1021:6 SCO MTU: 180:4
UP RUNNING PSCAN ISCAN
RX bytes:636 acl:0 sco:0 events:33 errors:0
TX bytes:455 acl:0 sco:0 commands:33 errors:0
I've two use cases for bluetooth module,
1. File Transfer from Android mobile
2. String Transfer from Android mobile
For, file transfer I'm configuring and receiving data from rfcomm channel 5 which is described for FTP.
Now, I'm able to scan and transfer file using android application "Bluetooth File Transfer", but when I'm trying to send a file using default android bluetooth sharing method, I'm not able to scan my bluetooth device. And this is happening in every mobile I've tried.
For string transfer, I'm configuring rfcomm socket for receiving data. Now on android side, I'm using BLE chat application and connecting it to my bluetooth device which I'm able to do successfully, but then when I'm sending some string from android application, I'm not getting anything on the rfcomm socket. I've tried this on other applications as well which uses rfcomm, but still not receiving anything.
Can you help me with what should I do if I want to do string transfer ?