简体   繁体   中英

Is it possible to transfer data between two BLE devices?

I want to use a BLE dongle on my Mac/PC and use the serial port to send numeric data to an app that I developed on my Nexus 7.

Is this possible?

I assume they are both central so it wont work? Do I need a third BLE device?

Yes, it is possible for sending and receiving short pieces of data known as "attributes" over a BLE link. All current Low Energy application profiles are based on GATT.

More Details

Your Mac and your Nexus are both dual mode devices, meaning they can act as both central and peripheral. You can set your Nexus 7 as a peripheral, advertise from it, and then connect to it through your Mac which is acting as a central. Once the connection is established your Nexus 7 can host a GATT server and your Mac can perform GATT client operations to read/write data.

There is a relevant question here:- Is it possible to connect iOS and android device using Bluetooth?

I hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM