Redboard Artemis bluetooth

Hello,

Anyone know how I can see the serial console over bluetooth? From my laptop of iPhone

Please share any code or link…

Thanks in advance!

Anyone?

Are you asking about displaying messages received over Bluetooth from a separate device? If so you can process the incoming BLE message and then display it using Serial commands.

Thanks for your answer.

No, I want to connect the serial console over BT instead of connect serial cable TX-RX.

I try to debug the Artemis over BT because I cant connect any serial cable to the BOX…

There is any option to do that ?

Thanks in advanced.

There is no BT SPP profile in BLE as there was in classic BT. So it probably won’t work exactly the way that you are expecting. However what you can do is create a custom service with TX and RX characteristics. These can act like endpoints for sending and receiving data one byte at a time much like wired Serial. It is easier than ever to write BLE apps on phones, computers, etc… try looking at the WebBluetooth API

Thanks for your answer!

Do you know where I can find code that send over BT the serial output so I can see it on my Mac?

We don’t have any good examples of that right now but keep your eyes out over the next month - big things coming

Sounds good :slight_smile:

Please send me some reference if you have I will try to implement it …

Thanks a lot !

liquid.soulder:
We don’t have any good examples of that right now but keep your eyes out over the next month - big things coming

Any update here maybe?

Anxiously awaiting some improved BLE infrastructure. ( I find the Example8_BLE_LED example quite … obtuse, and non-Arduino-like. Am I the only one to think so?)

Check this out:

https://github.com/sparkfun/Arduino_Apo … .0-preview

If you get this up and running then you can use the ArduinoBLE library. Might take a little finagling to get working before I finalize the v2.0.0 release

Thank you for the quick response, but (embarassingly) I have to admit I am not sure how to make use of this git preview branch. Do you have an ETA for 2.0 release? Thanks!

I have a rough ETA of September. We are targeting the 9th right now. Hang in there, thanks for the patience!

I hope you’ll give us a “heads up” when it’s actually available. When I saw the Blog post on the Artemis DK I updated to the Sparkfun Apollo3 v. 1.2.0, and also installed the ArduinoBLE library, but when I looked at “Examples” (with the Redboard Artemis selected as “board”) I find that the BLE examples are listed under “INCOMPATIBLE”, and won’t compile. (I even tried my own, just #include <ArduinoBLE.h> and a “BLE.begin();” in the setup() function, and it won’t compile either.) Based on the comments in the LedControl example, I installed the stuff to use an Aduino MKR WiFi 1010 (I don’t have any SAMD based boards, so never installed any into the IDE). Both routines will compile for the Arduino MKR WiFi 1010, but as I said, give compatibility errors when compiled for the RBA.

In case you haven’t seen the announcement… the updated Apollo3 Arduino core is live with full support of the ArduinoBLE library!

I have a sketch that has nothing but a “#include ” at the beginning, and in setup() a “BLE.Begin()”. If I have the board “Arduino MKR WiFi 1010” it compiles cleanly. If I try it with “SparkFun Artemis Dev Kit”, it throws a bunch of error messages.

same here… first it does not recognize , which is easy to resolve by including “typedef unsigned int word;” in BLETypedCharacteristics.h.

BUT in … /ArduinoBLE/src/utility/HCIUartTransport.cpp it is not able to recognize the Artemis board (as it is NOT part of the check).

Do we have the wrong ArduinoBLE library or what ??

Come on SparkFun… you can do better than this. Provide a working example or info for changes to apply !!

I strongly suspect that there’s a one-line error somewhere in what amounts to a “config” file. Right now, the ArduinoBLE is only working for boards that have “SAMD” processors (which are apparently ARM Cortex M0), but not with the Apollo ARM Cortext M4 processors. I’ll admit that I’m not conversant with the differences between the various flavors of ARM cores. Since Arduino “libraries” get compiled every time you click either the “check” or “upload” button, it sure suggests to me that something in the “compiler command line arguments” got missed, especially if it’s working for some of the developers at SparkFun.

Just for grins sake, I decided to try my “minimal” program specifying that it’s a SparkFun ESP32 Thing (which is also claimed as having BLE capabilities). After about 20 minutes downloading the support for that board, I still got errors compiling for it.

Last night I entered the Arduino IDE, went to the BoardManager, cut/pasted the new link to https://raw.githubusercontent.com/spark … index.json, and then installed the new 2.0 Arduino Core. This changed the board for my sketch back to a default (Yun?), so I re-set it back to Artemis Redboard. I had some draft BLE code in the sketch ready to try, so I un-commented, and did a verify/upload. (It did not compile, but that is another post topic.) Now after closing the Arduino IDE, the IDE will now no longer open! Attempting to run arduino.exe results in the splash window “Initializing packages…”, “Preparing boards…”, and then disappears. Assumedly, something in the new board support library is amiss… how do I back this out and try again?