posted on Oct, 10 2015 @ 06:47 PM
I'm developing an app (android) that sends data via bluetooth.
I only have one phone, and thats borrowed because I'm a dinosaur.
For testing purposes I send data via the bluetooth to my pc by doing the following.
In a console (I'm on linux) I type the following
sdptool add --channel=22 SP
rfcomm listen /dev/rfcomm0 22
In another console I type the following
This console now displays the data sent by my app.
Everything so far is working fine, but I now need to test receiving data on the phone.
Does anyone know if there's a way to do this. I have searched on the net and seen references to using the redirection character with /dev/rfcomm0 but
that seems to be for sending files. What I need to be able to do is something like this.
"Type my data to send" > /dev/rfcomm0
It doesnt work, I assume its just the syntax?
Any help much appreciated.