-
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 23 replies
-
|
Apologies - this is now working fine. I did not realise that I had another process still running that was in contention for the port. I stopped it and the tio console to MicronettoNMEA seems to be working without any obvious data errors. I need to investigate the port speed settings a bit more as well. Thanks for your patience! |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for not answering earlier. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, It has been a year since I looked back at this after a few tries. Thanks for your great work on Micronet To NMEA: I have ALMOST :-) got it working, but I am still a little stuck, this time with the Micronet protocol. As before, all compiles well on the Arduino IDE and it seems to run well and connect to our MN100-2 display. I had hoped to be able to send some test NMEA data to this display over serial USB for the Teensy to forward to Micronet and be read on the display, but I see nothing, only dashes - - - - for the depth and speed data …..and no other data. The test data works fine when connected to AvNav via a USB serial port or a socket over wifi, so I think MicronetToNMEA should be able to convert and forward the NMEA for Micronet. For example: I don't understand Micronet very well, so I could be doing something stupid. Using the console over the USB serial I seem to be able to connect the Teensy and observe traffic that the display puts out, but I don't have any Micronet tools to observe what, if anything, is arriving in Micronet while my test host (simulated depth sounder) is sending the Teensy data over the USB Serial. Maybe the MN100-2 has to have another 'proper' device connected to make this work? Example from the console: *** MicronetToNMEA *** 0 - Print this menu Choice : 2 Scanning Micronet networks for 5 seconds ... done List of scanned networks : Network 0 - 810372D2 (very strong) Choice : 3 Enter Network ID to attach to : 810372D2 Choice : 5 Starting Micronet traffic scanning. Network ID : 0x810372D2 810372D2 810372D2 01 09 00 9A 23 23 -- 81 03 72 D2 17 03 12 34 58 1E 03 12 34 57 1F 03 12 34 56 1D 00 00 19 (-67, -7512) Network ID : 0x810372D2 810372D2 810372D2 01 09 00 9A 23 23 -- 81 03 72 D2 17 03 12 34 58 1E 03 12 34 57 1F 03 12 34 56 1D 00 00 19 (-67, -7512) Note that the number of devices seems quite variable… I have seen values from 3 down to 0, but there are only two devices on test here - the MN100-2 display and the MicronetToNMEA Teensy. See below for the Boardconfig file I am using. Note that I have changed /***************************************************************************
*/ #ifndef BOARDCONFIG_H_ // // // Select EU (868MHz) or not-EU (915MHz) Micronet frequency // Selects on which I2C bus is connected compass as per Wiring library definition // CC1101/SPI pins // NMEA GNSS UART pins // USB UART params // Wired UART params // The console to use for menu and NMEA output // Defines which data comes from which link // Navigation softwares can send a wrong RMB sentence and invert "FROM" and "TO" fields // In case your displays would have difficulties to receive data from the Tacktick wind // In case your Micronet system would not have SPD data (speed on water), you can set this // Define which compass axis will be compared to magnetic north // // #endif /* BOARDCONFIG_H_ */ I would be really grateful if you could have a look at this and maybe suggest what else I could try. Happy New Year, Nick |
Beta Was this translation helpful? Give feedback.
-
|
Apologies. I took only a few lines from the top of the log where the GPS was still searching. Later on there are the occasional RMC sentences: $GPRMC,110422.000,A,5050.843,N,00009.503,W,0.0,000.0,170125,,,D*7D I could put a filter on the AvNav handler to suppress sending of the $GPGSV sentences. Maybe they are flooding out the connection somehow? The "sendOwn" checkbox is to 'send data received over this connection' - a sort of duplex echo - not required I think. I tried it anyway but it made no difference. I also tried with other cables. Again no difference as far as I could see. Note there is an option to strip out the leading 2 characters after the $ and before the RMC. I tried that too, but again no difference. In the test data set I used earlier with my script I had a wider variety of sentences, but none of them were received by the Teensy. Other thoughts:
|
Beta Was this translation helpful? Give feedback.
-
|
I think we owe you a beer / coffee! I found this Neo M8N... but perhaps it looks like a knock-off Do you have any suggestions / link to a better one, or the one you use in your set-up?. I need to attach an external antenna too. Micronav looks great for next time! |
Beta Was this translation helpful? Give feedback.
-
Starting with a) compilation errorI re-compiled and uploaded the code with the Arduino IDE on Ubuntu (apparmor issue fixed). ..but I am not sure if they are relevant? Otherwise successful upload, and processing started fine, until the error came again in both the terminal and when connected to AvNav. I guess that proves it is not the IDE difference and more likely to be a hardware problem. so... moving on to b) faulty LSM303 - replaceThe swap of the module worked only slightly better: the old module gave about 2 hrs of processing before crashing, then after reboot, another 30 min. It is still not reliable on the live set-up. The new module was then soldered into the test rig where it seems to run fine. The only differences between the cabling in the live set-up and the test set-up are:
I have changed the pins on the live to match the test, but I am still getting instability (MTN stops sending valid data). I disconnected power from the LSM303 from the live cable , so only GPS data going through the cable, and it seems much more stable, running for many hours without HDG, but without failure. Reconnecting the LSM303 seems to result in eventual failure. However, this is not very robust. Perhaps there is something in the code that is vulnerable to data anomalies from the LSM303? |
Beta Was this translation helpful? Give feedback.
-
|
Here is a more robust version of NavCompass code : NavCompass.zip |
Beta Was this translation helpful? Give feedback.
-
|
New code has been recompiled and uploaded without errors, thanks! Meanwhile I had confirmed that the root cause of the problem was noise on the cable from the Teensy to the LSM303. Fixing the connection for better screening allowed it to run for 36 hours non-stop. Unfortunately for testing purposes that means I can't confirm your NaN validation traps the old errors, but I will have another proper test when I do more calibration next week. Just want to say thanks in the meantime for some great coding and support. Really appreciated. Nick |
Beta Was this translation helpful? Give feedback.




Apologies - this is now working fine. I did not realise that I had another process still running that was in contention for the port. I stopped it and the tio console to MicronettoNMEA seems to be working without any obvious data errors. I need to investigate the port speed settings a bit more as well. Thanks for your patience!