SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
By ryann
#222127
I'm trying to figure out how to get wireless access to the OLA's terminal.

How:
It seems there are three ways this might be done:
  1. Use the built in BLE functionality,
  2. Find some way to attach a BT device to the USB-C port,
  3. Modify the firmware so that the RX and TX pins can be used for the terminal.
While #1 would be best, I need to deploy this in March, and built in BLE may not be ready by then.
I'm no expert in USB-C, but I don't think I'll have any success finding a a BT module that's also a USB-C host.
That leaves me with #3 which might be a nice feature, but if I recall from past experiences, abstracting serial ports isn't trivial.

Why:
My device will be hard to get at, and often under water. When not under water, I'd like to stream live data (very low sample rate) and download previous data without opening up the sealed enclosure.
User avatar
By PaulZC
#222158
Hi Ryan,
We do still plan to implement BLE support on the OLA, but sadly not soon. We've got a bunch of other stuff to tackle first.
Using the USB-C port directly would be tricky as the port is expecting to be connected to a host. To connect a USB-wireless device, you would need the Artemis to _be_ the host. It might be easier to hack the board, remove the CH340E, and connect the RX0/TX0 to a wireless module? e.g. https://www.sparkfun.com/products/17255 But, if you do that, you would almost certainly have problems when uploading new firmware as that procedure needs access to the RTS pin too.
Yes, you could change the code so that the menus etc. are accessed via the RX and TX pins, but you would need to disable the serial logging and analog read code first. Then replace all of the Serial calls with SerialLog.
My advice would be to try option 3 first. Removing the CH340 is a bit drastic.
Good luck!
All the best,
Paul
User avatar
By jimbrookline
#222426
Hi, Wonder if you guys could comment: I need a wireless link from sensor to a terminal on a PC or mobile. Was hoping to use the BLE library with Artemis OLA, but I see that is not ready. (I was trying example here:tutorials/getting-started-with-the-artemis-development-kit/arduino-examples but code would not compile). But you seem to be saying I could use the OLA as the host/central? So perhaps I get what the Arduino ble library says it is compatible with - Arduino MKR WiFi 1010, Arduino Uno WiFi Rev2 board, Arduino Nano 33 IoT, Arduino Nano 33 BLE, or Arduino Nano 33 BLE Sense board for the peripheral sensor node, and have it transmit to and be received by the OLA and then have it show data on the serial monitor? (I have used the NRF52 serial monitor before but don't understand the programming required to get data on the screen....). Any inputs helpful. Jim
User avatar
By PaulZC
#222453
Hi again Jim,
We do plan to add BLE support on the OLA - but that means upgrading the OLA to use v2.0 of Apollo3 - which means changing to Mbed - and, all in, that's a big job... We will do it, but not right now.
I was suggesting to Ryan that - for now - it might be easier to hack the OLA code so it uses SerialLog (the TX and Rx breakout pins) instead of Serial via USB. Then you could add your own wireless link via the Tx/Rx pins.
Best wishes,
Paul
User avatar
By PaulZC
#235995
An update on BLE support on OLA:

There are several reasons why we have not implemented BLE support on OLA, including: the extensive changes and restructuring of the OLA code required to add BLE support with Mbed; the level of effort required to implement those changes; new products - coming soon! - where it is _much_ easier to add support for both WiFi and Bluetooth serial port profile (SPP) connectivity.

It was our intention to add BLE support, and I'm sorry we have not done that, but here we are...

Best wishes - and apologies,
Paul
By ryann
#235999
Thanks for the update Paul. We've been successfully using external BT modules. First the SparkFun BlueSMIRF, then when that was discontinued, the Adafruit Bluefruit LE UART Friend https://www.adafruit.com/product/2479.

To save power we use the Qwiic bus to power the BT modules. It's not ideal, but it works. We're streaming data and doing file downloads via Bluetooth to a nearby RPi.
User avatar
By wanthalf
#236015
Finally I found this discussion! Well, new products? So I have just wasted money for something that won't actually be usable via its BT? I would have waited for the "new products" if I noticed this in good time... :(
User avatar
By hanzichi
#237451
I have attached a RN-42 to the OLA board on the RX/TX pins and power it with the 3V3 pin. If I connect via the USB COM port, it successfully initiates a session (spits out the below). I can then also connect through the bluetooth COM port and through that terminal can also view the data output, and initiate commands. But, I cannot initiate through just the bluetooth connection. Is there a special port setting or something that I need to or something else I'm missing. I've been using mobaxterm but have also tried putty. Thanks!

SD init failed (second attempt). Is card present? Formatted?
Please ensure the SD card is formatted correctly using https://www.sdcard.org/downloads/formatter/
Config file read failed: SD offline
Artemis OpenLog v2.4
SD card offline
Datalogging offline
Serial logging offline
IMU online
Identifying Qwiic Muxes...
Identifying Qwiic Devices...
No Qwiic devices detected
Content-Type: text/csv

rtcDate,rtcTime,aX,aY,aZ,gX,gY,gZ,mX,mY,mZ,imu_degC,output_Hz,
01/01/2000,00:21:52.97,753.42,-191.41,-606.93,-1.56,-0.02,-0.79,-68.25,77.40,48.75,28.56,0.0,
01/01/2000,00:21:53.07,753.42,-196.78,-601.07,-0.95,0.11,-1.27,-69.45,78.15,48.30,28.70,20.0,
01/01/2000,00:21:53.17,760.74,-199.71,-602.05,-0.79,-0.05,-0.17,-70.20,78.15,49.50,28.56,15.0,
01/01/2000,00:21:53.27,761.23,-183.11,-622.07,-0.03,1.07,-1.85,-68.85,77.55,47.70,28.60,13.333,
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum