narioinc89
Member since Dec 2017 • Last active Mar 2018Most recent activity
-
Hi @Spocki
I was able to get a majority of the stuff on the itracker board working on espruino:
https://github.com/narioinc/Espruino/treĀe/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 :).
-
- 19 comments
- 5,377 views
-
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.
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.