I am mostly an embedded device developer. You can see what I do at www.orelectronics.net I’m working on the next generation of my main product and I want to add Bluetooth (actually BLE) to it. The tasks would be data streaming (at modest equivalent baud rates - 38kbaud or less) and a terminal-like interface for configuration. I don’t know much about Bluetooth yet. On my semi-ancient Mac running High Sierra, I see Bluetooth appearing as a serial port. This will need to work cross-platform, ultimately including Android and iOS if possible.
Can anyone give me some hints about the high-level side of this so that I can do the embedded-side (not even sure which should be host and which should be client) somewhat intelligently? What software interface would be used and would it be the same for Windows, Mac, etc?
Probably have not asked the right questions, here, because I really don’t know what to ask. Will try to fill in, in response to postings, as I am able.
Oregon Research Electronics
what limited stuff I used Bluetooth on was very easy, serial port to serial port is almost too easy, no baud rate or connection to worry about, the serial settings are only to connect to the actual driver, on air its entirely transparent and only any data you send is transferred, it just appears at the other end.
I have done this module to module with a PIC as the data source and module to a Mac, with just a terminal on the Mac.
in Xojo there is no need to use any driver, just connect to the Bluetooth port with a serial port and its perfect immediately.
works on all platforms, I even have an android phone talking to my iMac.
bluetooth is bit of a red herring as its just the transport layer, if I understand your question correctly.
Thanks, everyone. This goes a ways toward the learning. In the regular Xojo forum, the standard solution seems to be MBS. doj (Mark), could I correspond with you off-forum? wagnejam99 at comcast dot net
Thanks for your responses. For prototyping, I am going to try an RN4870. There seems to be a fair amount of example code for the embedded end and several code examples for the “smart” end. For BLE, with my Mac, it looks like opening a serial port. At this stage, I just need to demonstrate that my embedded hardware and software is capable of supporting BLE. The “for real” implementation is out, a ways.
For what it worths, the confusion likely came because Dave spoke about Swift and you talked about Xojo; those are 2 programming languages, not tied together, and only Xojo, among these two, can produce Windows executables.