bomby
Posts: 9
Joined: Sun Feb 07, 2016 7:34 pm

Bluetooth: Send & Receive simultaneously with socket an

Tue Feb 09, 2016 4:59 pm

-------
Last edited by bomby on Tue Mar 29, 2016 7:33 pm, edited 1 time in total.

User avatar
Douglas6
Posts: 4809
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth: Send & Receive simultaneously with socket an

Tue Feb 09, 2016 6:24 pm

It's not clear to me what you are trying to do. As far as I know, Android Bluetooth serial apps are clients only, so I'm not understanding why you want the Pi acting as a client. What is your goal?

bomby
Posts: 9
Joined: Sun Feb 07, 2016 7:34 pm

Re: Bluetooth: Send & Receive simultaneously with socket an

Tue Feb 09, 2016 6:34 pm

------
Last edited by bomby on Tue Mar 29, 2016 7:33 pm, edited 1 time in total.

User avatar
Douglas6
Posts: 4809
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth: Send & Receive simultaneously with socket an

Tue Feb 09, 2016 6:51 pm

Sure you can. Create a server on the Pi, connect to it with your phone, and use that connection to read and write (full duplex).

bomby
Posts: 9
Joined: Sun Feb 07, 2016 7:34 pm

Tue Feb 09, 2016 7:01 pm

.....
Last edited by bomby on Tue Mar 29, 2016 7:32 pm, edited 2 times in total.

danjperron
Posts: 3439
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Bluetooth: Send & Receive simultaneously with socket an

Tue Feb 09, 2016 7:34 pm

Try to use rfcomm

The bluetooth connection will be like a standard serial link. with receive and transmit.

Return to “C/C++”