Linux

Question

how to communicate with BLE adapters in l2cap with bluez

by LivingChang / December 29, 2012 12:25 PM PST

Hi

I have two CSR4.0 usb dongle and want to send l2cap packets from one to the other in the type of LE(low energy). What I can do now is using "hcitool leadv" to advertise the LE advertisement and using "hcitool lecc" to connect it. I can't find any APIs of l2cap to establish a connection between thses dongles. Is there any way to solve this problem?

Thank you.

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: how to communicate with BLE adapters in l2cap with bluez
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: how to communicate with BLE adapters in l2cap with bluez
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Clarification Request
I think you need to add more detail.
by R. Proffitt Forum moderator / December 29, 2012 3:01 PM PST

I looked at BLE on google and it was inconclusive. I'm only an author of an app that uses bluetooth so while I know a little your question does not lend itself to being researched.
Bob

Collapse -
detail
by LivingChang / December 29, 2012 3:55 PM PST

I have two CSR4.0 dongle :

~$ hciconfig
hci2: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:09 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:1570 acl:3 sco:0 events:80 errors:0
TX bytes:1092 acl:3 sco:0 commands:52 errors:0

hci1: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:07 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:1399 acl:3 sco:0 events:63 errors:0
TX bytes:1014 acl:3 sco:0 commands:42 errors:0

then I use "hciconfig hci1 leadv " and hci1 start to broadcast.
Now I can use "hcitool -hci2 lecc" to build a connection to hci1 and get a connction handle , but I can't establish a connection with "l2test -n -i hci2 00:1A:7D:DA:71:07" and get a connection reject response.
In the other hands. I can build a connection using BR/EDR mode with the tool "l2test"

Collapse -
Sorry.
by R. Proffitt Forum moderator / December 30, 2012 7:32 AM PST
In reply to: detail

But you are not telling me enough. I would be guessing you are trying to build a PAN or a SPP link but since it's nothing I can decode yet, I think you take them back to their makers and work with them on a solution.
Bob

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech Tip

Tired of your tricky Wi-Fi password?

Stop trying to memorize a complicated sequence of numbers and letters. Learn how to change the default password.