It looks like you're using an Ad Blocker.

Please white-list or disable in your ad-blocking tool.

Thank you.


Some features of ATS will be disabled while you continue to use an ad-blocker.


rfcomm Need some help please.

page: 1

log in


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
cat /dev/rfcomm0
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.

posted on Oct, 10 2015 @ 07:14 PM
Try a dev channel on IRC my friend. Freenode has some good dev channels.

If I had the answer I'd let you know but I'm not on a linux system ATM and don't really dabble too much in Android development - just reaping the benefits of it by rooting/custom ROMs

posted on Oct, 10 2015 @ 07:28 PM
a reply to: b3l13v3

Thanks I'll have a look

new topics

log in