I am trying to port espruino to a nrf52 based iTracker board that I recently got from RAK wireless.
The setup of the board is very similar to the Puckjs board and p0.28 and p0.29 are the rx/tx pins. So i tried building the firmware for the board.
However once I have built the firmware (bootloader included) and flashed the device using nrfjprog, I am able to see the device correctly on my android device (I am using nrf connect app) and also able to see the nordic BLE UART service + characteristics, but I am not able to get the Espruino Serial output on this UART service.
I also tried connecting the NRF UART app on android to the iTracker board but still not able to see the REPL interface
So after snooping around, In the PUCKJS board py file, i was able to see a comment like so:
'D28' : "If pulled up to 1 on startup, D28 and D29 become Serial1",
Do I need to pull D28 to a HIGH (+3.3v) to enable the Serial port ?
Please let me know if I am missing something here.
I also plan to dedicate some of my time to add support for this board into the Espruino mainline. Is there a way I can do so by sending PR for the board after the necessary changes to include a BOARDS.py file. I just want to give back to the awesome open source community behind Espruino.
i tried connecting to the Espruino using the Espruino command line on my raspberry pi and here is the output
pi@ttn-gateway:~ $ espruino --list
pi@ttn-gateway:~ $ espruino -p /dev/ttyAMA0
Connecting to '/dev/ttyAMA0'
No result found - just got ""
Not sure why i am getting the " just got "" " line
ideally it should shows the REPL-like interface right ??
I was able to get the Espruino IDE working from an android mobile (samung s7) and was able to see the repl interface come up correctly on to the console on the left.
TO debug what was wrong from the PC side, I tried runing a couple of Google Web Bluetooth demos (https://googlechrome.github.io/samples/web-bluetooth/) and they are able to see the device but while enumerating the characteristics, there is some issue. Maybe its my bluetooth dongle or some other isssue. Will keep this port updated as i progress. Maybe it can serve as a learning for other devs.
I will start adding the pin defintion and related jswrap files for the itracker to enable the use of the NBIoT module and the GPS module on it. Then proceed to add the various sensors as well. Hopefully will be able to get a new board support into Espruino.
Hi @narioinc89, any news about your progress? Do you use the RAK2011-NB?
I was able to get a majority of the stuff on the itracker board working on espruino:
i have an mbed port as well that you can find in the mbed code reporsitory. just search for itracker
There's some really good news here - RAK Wireless want to get an 'official' build going. I'm just waiting for some boards from them to arrive (it's been a few weeks now), but when I get them and can get it sorted there'll be proper hex files and instructions available.
That is great news @Gordon !!!
An official port would be a great addon for the board. the onboard GSM and GPS also add some many possibilities :)
i have the JS driver for two of the onboard sensors. Maybe ill cleanup the code (as we had discussed earlier on some of the best practices) and send them in for you review.
That'd be great, thanks!
Great news, @Gordon. RAK is already advertsing future Espruino Support on Aliexpress ;-) See https://www.aliexpress.com/store/product/RAK8211-G-GPRS-Sensor-node-and-GPRS-M35-Tracker-Module-BLE-GPRS-GPS-5-Sensors-GPRS/2805180_32845158582.html?spm=2114.120106220.127.116.11d4e54d5Ln0DPk and https://www.aliexpress.com/store/product/RAK8211-NB-iTracker-NB-IoT-Tracker-Module-BC95-Support-Global-band-NBIoT-BLE-GPS-5-Sensors/2805180_32846317123.html?spm=2114.12010618.104.22.168bbb54d5ArwD7w
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem