USB Bluetooth dongle as UART

Moderators: mdrjr, odroid

USB Bluetooth dongle as UART

Unread postby hongbita2 » Thu Jan 04, 2018 3:22 pm

Hello,

Is there any example to set USB Bluetooth as UART slave on C1 Ubuntu?
hongbita2
 
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
Location: seoul, korea
languages_spoken: english, korean
ODROIDs: c1

Re: USB Bluetooth dongle as UART

Unread postby odroid » Thu Jan 04, 2018 3:51 pm

Once you paired the SPP device, you can access the RFCOMM via /dev/rfcomm0 probably.
User avatar
odroid
Site Admin
 
Posts: 28701
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: USB Bluetooth dongle as UART

Unread postby hongbita2 » Fri Jan 05, 2018 8:54 am

odroid wrote:Once you paired the SPP device, you can access the RFCOMM via /dev/rfcomm0 probably.



Thanks for answer.

When I pair with smartphone, then dongle shows with name "odroid-0" as headphone device.

I think the dongle needs to change UUID as SPP device. but i don't know how to do.

And, Can i use bluetooth with /dev/ttyN node instead of /dev/rfcomm0?
hongbita2
 
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
Location: seoul, korea
languages_spoken: english, korean
ODROIDs: c1

Re: USB Bluetooth dongle as UART

Unread postby odroid » Fri Jan 05, 2018 9:19 am

I have no idea whether a smartphone can support the SPP device mode or not.
You have to check the features list of the smartphone Bluetooth first.

It must be simple to bind rfcomm0 to tty111. The command is
Code: Select all
sudo ln -s /dev/rfcomm0 /dev/tty111
User avatar
odroid
Site Admin
 
Posts: 28701
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: USB Bluetooth dongle as UART

Unread postby hongbita2 » Fri Jan 05, 2018 10:03 am

odroid wrote:I have no idea whether a smartphone can support the SPP device mode or not.
You have to check the features list of the smartphone Bluetooth first.

It must be simple to bind rfcomm0 to tty111. The command is
Code: Select all
sudo ln -s /dev/rfcomm0 /dev/tty111


Thank you.

I'll test tty node.

Smartphone supports SPP mode. I've run test with Bluetooth-Serial module.

Is there any embedded tool to change bluetooth device(adaptor) settings? Slave mode, UUID, etc
hongbita2
 
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
Location: seoul, korea
languages_spoken: english, korean
ODROIDs: c1

Re: USB Bluetooth dongle as UART

Unread postby odroid » Fri Jan 05, 2018 10:08 am

I think your smartphone worked in a SPP host mode not a device mode.
User avatar
odroid
Site Admin
 
Posts: 28701
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: USB Bluetooth dongle as UART

Unread postby hongbita2 » Fri Jan 05, 2018 10:19 am

odroid wrote:I think your smartphone worked in a SPP host mode not a device mode.


Yes. smartphone is Master.

I want to use Odroid C1 as Slave SPP.
hongbita2
 
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
Location: seoul, korea
languages_spoken: english, korean
ODROIDs: c1

Re: USB Bluetooth dongle as UART

Unread postby odroid » Fri Jan 05, 2018 10:21 am

I have no idea.
Search google with "ubuntu usb bluetooth spp device".
User avatar
odroid
Site Admin
 
Posts: 28701
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: USB Bluetooth dongle as UART

Unread postby hongbita2 » Fri Jan 05, 2018 10:26 am

odroid wrote:I have no idea.
Search google with "ubuntu usb bluetooth spp device".


I did 2days but not found..

If i find, i'll post here.

Thank you
hongbita2
 
Posts: 187
Joined: Mon Jun 15, 2015 2:41 pm
Location: seoul, korea
languages_spoken: english, korean
ODROIDs: c1


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 2 guests