Bluetooth - serial or SPI?
-
I have been unable to find out if Bluetooth spec actually specifies how to connect to the device. Most application talk about two basic parts of the technology - the interface ( serial AKA modem, SPI, USB ) and the RF. And I though these devices could communicate among each other on their own ( as instructed) - for example passing the payload "down the pipe" sort off. Perhaps real pipe dream? And please - no Google it ! I did.
-
I have been unable to find out if Bluetooth spec actually specifies how to connect to the device. Most application talk about two basic parts of the technology - the interface ( serial AKA modem, SPI, USB ) and the RF. And I though these devices could communicate among each other on their own ( as instructed) - for example passing the payload "down the pipe" sort off. Perhaps real pipe dream? And please - no Google it ! I did.
-
Bluetooth is just short range network communication, so it use sockets. And, yes, Google does find the samples: bluetooth socket c - Google Search[^].
Actually I was looking for the interface to Bluetooth device at hardware level - Arduino to be precise. From few sources I gather that at that level and with serial ( TX /RX) I/O it is just a modem communication with the host processor using plain Hayes AT protocol. I suppose SPI interface would work similar - converting to AT commands if necessry. At this point I am not that concerned how the Bluetooth device communicates with another Bluetooth device or how it handles networking between multiple devices. That will come later.