Raymarine's Micronet

Booster

New member
Joined
12 May 2021
Messages
22
Visit site
It depends on what you intent. I see no sensor in your list.
My way was: Bought a breadboard and connect teensy 3.6, cc1101, ublox m8n and lsm303dlhc together as described in BoardConfig.h.
Using Arduino IDE with TeensyDuino extension was only successful under Linux (Ubuntu 20.04). No success with these progs under Win 10 because of loading problem for teensy, which I reported to the teensy forum.
I renamed Main.cpp to MicronetToNMEA.ino - same name as the project folder. (You can use also an empty .ino file and use the Main.cpp.)
Beside TeensyDuino you have to install certain libs e.g. SmartRC-CC1101-Driver-Lib for the CC1101 and for your connected sensors. You can recognize them in the included header files.
The Arduino Serial Monitor can't handle ESC key. In case you need that you can use putty or other serial interfaces.
Good luck!
 

mattnj

Well-known member
Joined
26 Jul 2007
Messages
1,350
www.red-data.co.uk
I am trying to compile this in Arduino IDE 1.89 for Teensy but get some errors, the file is loading onto the Teensy, as the light flashes (and I can alter the flash speed in the main.cpp code but no output on the Serial in arduino...

Any ideas?


EDIT* I got it working, wasnt wired up correctly and needed some code changes, will add to Githut
 
Last edited:

mattnj

Well-known member
Joined
26 Jul 2007
Messages
1,350
www.red-data.co.uk
Hello again.....so I've built this and compiled/installed ok.....I get the menu options but when scanning for micronet it never finds anything (I have micronet network with 3 instruments and depth/speed sensor box)

It's definitely an 868mhz c1101 and it detects is ok (doesn't error when booting)

Question is... (A) how do I troubleshoot it not finding anything when I scan (b) will it work with just 1 instrument if I take one home on the bench.....or does it need the main sensor/sender box.
 

Booster

New member
Joined
12 May 2021
Messages
22
Visit site
Can you screen dump Menu 1.
What you get from Menu 2?
I used a rtl-sdr stick in the beginning to recognize network address and attached the converter manually by Menu 3.
Both devices, display and converter should switched on. Frequency should match accurate.
 

mattnj

Well-known member
Joined
26 Jul 2007
Messages
1,350
www.red-data.co.uk
Can you screen dump Menu 1.
What you get from Menu 2?
I used a rtl-sdr stick in the beginning to recognize network address and attached the converter manually by Menu 3.
Both devices, display and converter should switched on. Frequency should match accurate.

15:58:39.830 *** MicronetToNMEA ***
15:58:39.830
15:58:39.830 0 ‑ Print this menu
15:58:39.833 1 ‑ General info on MicronetToNMEA
15:58:39.837 2 ‑ Scan Micronet networks
15:58:39.863 3 ‑ Attach converter to a network
15:58:39.867 4 ‑ Start NMEA conversion
15:58:39.868 5 ‑ Scan all surrounding Micronet traffic
15:58:39.870
15:58:39.870 Choice : 15:58:45.310 1
15:58:45.558 1
15:58:45.561
15:58:45.561 MicronetToNMEA, Version 0.4
15:58:45.561 Device ID : 3123456
15:58:45.564 No Micronet Network attached
15:58:45.567 Wind speed factor = 1.00
15:58:45.570 Wind direction offset = 0
15:58:45.572 Water speed factor = 1.00
15:58:45.572 Water temperature offset = 0
15:58:45.577 Provides the following NMEA sentences :
15:58:45.579 ‑ INDPT (Depth below transducer. T121 with depth sounder required)
15:58:45.592 ‑ INMWV (Apparent wind. T120 required)
15:58:45.592 ‑ INMWV (True wind. T120 and T121 with Speedo/Temp sensor required)
15:58:45.592 ‑ INMTW (Water temperature. T121 with Speedo/Temp sensor required)
15:58:45.594 ‑ INVHW (Speed on water. T121 with Speedo/Temp sensor required)
15:58:45.603 ‑ INVLW (Distance log T121 with Speedo/Temp sensor required)
15:58:45.613 Press 0 to see Menu.
15:58:45.616
15:58:45.616 Choice : 15:58:48.463 2
15:58:48.491 2
15:58:48.492
15:58:48.492 Scanning Micronet networks for 5 seconds ... done
15:58:53.561
15:58:53.561 /!\ No Micronet network found /!\
15:58:53.561 Check that your Micronet network is powered on.
15:58:53.563
15:58:53.563 Choice :
 

angryemu

New member
Joined
22 Nov 2021
Messages
19
Visit site
I really appreciate the work that has been done here. I am hoping for a little help though.

I have a Teensy 3.5 and a 868mhz c1101 . I have Sloeber working on Windows but whenever I try and build or compile the zipped download from Github it comes up with 2 errors and 1 warning.

Description Resource Path Location Type
Program "{compiler.path}{build.toolchain}{build.command.g++}" not found in PATH MicronetToNMEA Project Properties, C++ Preprocessor Include.../Providers, [Arduino Compiler Settings] options C/C++ Scanner Discovery Problem

Description Resource Path Location Type
Program "{compiler.path}{build.toolchain}{build.command.gcc}" not found in PATH MicronetToNMEA Project Properties, C++ Preprocessor Include.../Providers, [Arduino Compiler Settings] options C/C++ Scanner Discovery Problem

Description Resource Path Location Type
Invalid project path: Include path not found (C:\Users\Ronan\Documents\Arduino\libraries\SmartRC-CC1101-Driver-Lib). MicronetToNMEA pathentry Path Entry Problem

Any help would be greatly appreciated. I only need the module for reading from my tiktak micronet wind meter (direction and speed). Thanks
 

Rodemfr

Member
Joined
12 Mar 2021
Messages
45
Visit site
Hi angryemu,

Sloeber is especially picky with respect to project parameters. From your description, I understand that you imported the Sloeber project of MicronetToNMEA. This project has been created on my PC and since all paths are stored in project settings (instead of workspace settings), Sloeber does not find the compiler on your PC. I advise you to create a new project from scratch and to only use the existing project as an example. It should work.
If you don't plan to deeply modify the software, you might want to use Arduino IDE instead.
If you don't manage to fix your issue, I'm currently writing a more detailed manual. I can send it a draft version onto your e-mail. Just send it to me by private message.

Ronan.
 

angryemu

New member
Joined
22 Nov 2021
Messages
19
Visit site
Thanks for the detailed reply Ronan. Makes sense.

I tried a suggestion above and renamed Main.cpp to MicronetToNMEA.ino and then loaded project in Arduino IDE and it looks like it worked thanks.

It compiled and uploaded to Teensy 3.5 without error, but when I run the serial monitor the menu doesn't come up (the console is blank) but that's possibly because I haven't attached the CC1101 yet?

I don't plan on modifying it at all if I don't have to as I'm not experienced with C/C++ . Whilst I've done some coding in PHP, MySQL, javascript, html and have played around with RPis frequently, I'm far from adept and I'm definitely still a noob with arduino unfortunately.

Anyway, love your project thanks and hope to be getting NMEA output from my tiktack micronet wind meter soon. Cheers
 

Rodemfr

Member
Joined
12 Mar 2021
Messages
45
Visit site
Sorry for the late answer.
When CC1101 is not connected, MicronetToNMEA prints an error message on the console and stops there. You can identify this error state because the led is blinking (500ms on, 500ms off).
If you don't have the blinking led, then there might be another issue.
If you have issues, don't hesitate to contact me by MP, we will make you network output NMEA !
 

angryemu

New member
Joined
22 Nov 2021
Messages
19
Visit site
Hi Rodemfr,
Yep still having problems unfortunately. I spent another couple of hours on Sloeber trying to recreate my own project (several times) but something is badly wrong because even when I have mirrored your config but have copied all the required files and folders to the project it comes up with literally hundreds of errors. They seem to be C/C++ compiler errors. I think it is playing badly on Windows... wonder if it would work better on linux.

I seem much closer in Arduino IDE. I can verify the sketch and the only error it reports is one single error about the ELECHOUSE_CC1101 (yes I downloaded, added and included it in my project). It uploads without issue but I still get blank serial monitor and no flashing.
Just to finalise my failings for the evening... I can't even PM you. I would've thought that would be very simple, this is not my first forum believe it or not haha. YBW says Oops! We ran into some problems.
I'm going to bed for the night :(
Maybe tomorrow I can get PM working and send you a copy of the Arduino IDE error log.
Thanks.
 

Tuguy

New member
Joined
6 Dec 2021
Messages
12
Visit site
Hello,

I tried old release in May and successfuly install it to the Teensy with the help of Rodemfr (many thanks). Now I test the last release.

angryemu I also have difficulties at the begining to upload to Teensy with Sloeber. I was also closer to Arduino IDE.

I solve the difficulties with the attached process. (unfortunately tit's an automatic translation from my French document with some English mistakes). This is working with Sloeber 4.3.3 but I don't success with the last release 4.4.4.
 

Attachments

  • Installation-eng.pdf
    131.7 KB · Views: 19

Tuguy

New member
Joined
6 Dec 2021
Messages
12
Visit site
Hi Roedmfr

I have tested the new release. The new RF interface with Micronet is much better that the first one. Now I have to modify my board to connect my ESP32 on the NMEA Pin 33 and 34 instead of 31 and 32 to test the Wifi.

After that I will test the compass LSM303. (Pin 31 and 32?)

Congratulation for the job and many thanks
 

angryemu

New member
Joined
22 Nov 2021
Messages
19
Visit site
Hi Tuguy,
Thanks a lot for the detailed installation guide. The translation looks fine too. I wasn't using the Sloeber plugin but the standalone program and maybe that was some of my trouble. Anyway I'll follow your directions thanks in a few days when I have time and will advise of the result.
Appreciate the assistance.
 

angryemu

New member
Joined
22 Nov 2021
Messages
19
Visit site
Hi Tuguy,
I seem really close now after following your instructions. I think anyway. However, on your dot point 4, the Arduino/Verify stage I get:

17:57:49 Build Failed. 3 errors, 0 warnings. (took 4s.192ms)

The errors seem to all be to do with RfDriver.cpp?

..\RfDriver.cpp:44:15: error: 'class ELECHOUSE_CC1101' has no member named 'setGDO0'
subdir.mk:148: recipe for target 'RfDriver.cpp.o' failed
make: *** [RfDriver.cpp.o] Error 1

I definitely have the SmartRC library added and available. In the import Arduino libraries dialogue I have 2 Smart RC to choose from but have only the first one selected as it comes up that way by default:
SmartRC-CC1101-Driver-Lib (selected)
SmartRC-CC1101_Driver_Lib-2.5.7 (not selected)
 

angryemu

New member
Joined
22 Nov 2021
Messages
19
Visit site
I should add that I haven't connected my CC1101 module to Teensy yet but I can't imagine this is causing the build fail because I'm not getting as far as upload stage.
 

Tuguy

New member
Joined
6 Dec 2021
Messages
12
Visit site
You just must connect the Teensy card to the PC and choose the COM port. After that it is not necessary to connect the card to verify the code.
In Sloeber I just have SmartRC-CC1101-Driver-Lib
Did you reattach the library?
My process runs with the old Sloeber release 4.3.3 and I did not success with the last one 4.4.0.
 
Last edited:
Top