Originial Espruino and GPS Module #4729
Replies: 1 comment
-
Posted at 2019-01-20 by @allObjects What version is Espruino? There were serial setup issues in the past... but that was a while ago. Posted at 2019-01-20 by user97113 This version: https://shop.espruino.com/original Posted at 2019-01-20 by Robin Sun 2019.01.20 Hello @User97113 @allObjects was inquiring as to whether a re-flash to a more recent version of Espruino had been performed, and what is that version. Would you please post the results of entering in the IDE:
> [http://www.espruino.com/Reference#t_l_process_version](http://www.espruino.com/Reference#t_l_process_version) Knowing that tidbit may garner some insight into the serial setup issue.
Please check your Tx Rx connections. Compared with the table on the GPS doc page, they seem opposite. Posted at 2019-01-20 by user97113
Here are the results: ={ Posted at 2019-01-20 by @allObjects 1v80 is pretty outdated, and exactly with that (and some few other) versions there was this issue: espruino/Espruino#559 that you face: setDeviceClockCmd: Unknown Device. As @robin hints, update - re-flash - your Original Espruino board. In the IDE, click the Gear / Settings Icon and then choose Flasher from SETTINGS menu. Instructions how to re-flash you can find at https://www.espruino.com/Original , section Firmware Updates. Amazing how reliable Murphy works! What are the odds to get exactly that version... - Sorry for that, I know how it is when starting with something and that something just walks sidewards instead of forward. Posted at 2019-01-21 by @gfwilliams Just as @allObjects says, if you update the Espruino version on your board you will probably find that everything works great! Posted at 2019-01-22 by user97113 @gfwilliams Thanks, guys! It is now kind of working. However, "NaN" is showing up for lat and lon: "time": "02:57:23", Why is this happening and how can I fix it? Posted at 2019-01-22 by Robin Mon 2019.01.21 It appears you may have a successful re-flash. What version is now installed? Also, as I mentioned in #4 was it possible to verify that the Tx Rx lines cross as shown in table from your GPS link in #1 above?
Assumption here, if 0 satellites is the actual number detected, that might explain why the data is invalid, e.g. NaN Posted at 2019-01-22 by @gfwilliams Yep, I believe it'll just return NaN until it's got enough Satellites in range to give you a proper reading. You can check with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-01-20 by user97113
https://www.espruino.com/GPS
Hi! I recently purchased an Ublox NEO6MV2, an Original Espruino Board, and an Espruino Pico after reading the webpage linked above. I connected the Original Espruino Board to the Ublox GPS Module. I connected VCC to BAT, tx to C10, rx to C11, and GND to GND. The red light on the Ublox GPS module blinks every second or so; however, I entered the code shown below, and this error message pops up: "Uncaught InternalError: setDeviceClockCmd: Unknown Device 816 at line 1 col 35 Serial4.setup(9600,{tx:C10,rx:C11})." After trying it again a few other times, a different error message that simply reads "undefined" shows up.
This is the code I entered:
Serial4.setup(9600,{tx:C10,rx:C11});
var gps = require("GPS").connect(Serial4, function(data) {
console.log(data);
});
I have also tried Serial3, Serial 2, B10/B11, and A2/A3, but they all don't work as well. I'm also doing this near a window. What am I doing wrong? Is there something wrong with the code I'm entering in? Can someone please help me? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions