-
Hi @Spocki
I was able to get a majority of the stuff on the itracker board working on espruino:
https://github.com/narioinc/Espruino/tree/itracker_devHowever the drivers were written in C. I had a word Gordon and had him review the code. He suggests that having javascript based drivers is a more optimal solution as that will allow the drivers to be reused for other boards as well.
However if you like, you could go through the C code in the branch :) i am not a Javascript geek so i had to make do with this. As for the serial connection with the GPS and GSM, you can use the Serial UART javascript API.
i have an mbed port as well that you can find in the mbed code reporsitory. just search for itracker
-
Thanks @Gordon
This is exactly what I wanted :).
-
I had a word with the CEO of RAK Wireless and he seems interested in your proposal for a port maintenance for some of his boards. I am sharing his email id here:
ken.yu at rakwireless dot com
I am just a contributor for some of the projects using their boards. Hence I wanted you to have a direct contact with him regarding your proposal. My humble request to please do follow up with them as I feel its a good opportunity.
I was not sure if you would be comfortable in sharing your official email id with me hence I am requesting you to share the same with Ken himself directly :)
Thanks
Regards
Naresh K -
Got it !!!
I'll then use the BH1745.js driver as a reference to keep the code consistent and in-line with the standard followed across the Espruino drivers. Thanks for the debug suggestion @Gordon. Actually I was just about to ask you a better way to debug the drivers quickly :). Maybe you heard my mind's voice !!!
i saw a sliughtly similar approach in the LIS2D12 driver and thought ill take up as reference for the accel and magnetometer on the iTracker module. the opt3001 driver should be fairly easy to port. I haven't yet got the revision 2.0 of the board which fixes some board errata according to RAK. Once I get the board ill test my drivers on that and then send the PR.
Regards,
Naresh K -
Awesome @Gordon !!!
Will await your code push and the new board ;) This weekend would be a good time for me to go through some of the sensors driver you have authored and understand how to port my boards sensors. Since the sensors drivers aren't board specific, I can send a PR for those to the mainline project for your review.
-
Hi Gordon
Thanks for looking into the code and also showing me the correct way of integrating sensors. Seems there are a plethora of sensor drivers available. I would definitely try and port my code to JS so that it uses your framework in the intended fashion.
Yes as you might have seen, my code was very specific to nrf52, but after seeing the JS code i believe I can write the JS equivalents and push the sensor libs for the remaining sensors (LIS2MDL , LIS3DH, OPT3001). I am not a pro with JS (I am mostly into embedded Android, apps and J2EE in my day job) but it would be good excuse to learn JS :)
Will keep the forum posted on the developments.
-
Hi @Gordon
Sure I understand the implications and the maintenance required when handling 3rd party code. It becomes tough to keep things in order with contributed code gets abandoned or when the project needs to undergo revamp/updates.
I'll be maintaining the code for the itracker module here:
https://github.com/narioinc/Espruino/tree/itracker_devNonetheless, I really appreciate your efforts with the Espruino project. Keep up the good work. I got to learn a lot from the project and wanted to give back what I had learnt to the community.
-
Also have been working on Espruino port to the RAK itracker module by RAK wireless. Got all the sensors working and waiting for confirming the working of the NB IoT and GPS module as well.
I am pushing my changes here:
https://github.com/narioinc/Espruino/tree/itracker_devAlso in works is a Espruino port on a BLE+LoRa module again from RAK
But would really love to send these changes upstream. Will need sometime to do a self code review to keep the code in line with the code quality in the main repo. Will push my changes soon !! :)
-
Hi Gordon
Thanks for the quick reply. Seems like a nice challenge for me :) will keep the forum posted on the developments. I do agree that the real uphill task would be the wifi as the normal GPIO inits and drivers would be fairly straight forward. Lets see what I can make of it. There is a fair bit of community around the REALTEK Ameba boards. Maybe I can ask them for a collab on the board :)
Regards,m
Naresh -
Hi Guys
Just wanted to know if there is a port that exists for running Espruino on RTL8195/8711 chipsets. I have experience running espruino on nrf52/nucleo boards and recently also ported the chnages to the RAK itracker module along with full support for on board sensors
https://github.com/narioinc/Espruino/tree/itracker_dev
If no such port exists for the REALTEK chipsets, can someone guide me as on how to get a basic port functioning. any suggestion would be welcome and i would be glad to contribute back to the community
-
Hi All
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.
-
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
Espruino Command-line Tool 0.0.36
PORTS:
/dev/ttyAMA0
pi@ttn-gateway:~ $ espruino -p /dev/ttyAMA0Espruino Command-line Tool 0.0.36
Connecting to '/dev/ttyAMA0'
No result found - just got ""
ConnectedNot sure why i am getting the " just got "" " line
ideally it should shows the REPL-like interface right ?? -
Hi all,
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.Regards
Naresh K
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.