Stefal / rtkbase

Your own GNSS base station for RTK localization with a Web GUI
GNU Affero General Public License v3.0
482 stars 121 forks source link

Any way to add new Quectel LG290P module? #438

Closed splee777 closed 2 weeks ago

splee777 commented 2 weeks ago

I currently run RTKBase with the F9P and it's a really nice system. I recently acquired a Quectel LG290P module to play with and was trying to get it to work with RTKBase. I can get it to send the RTCM3 packets to the the program and get the Main service to show green, but when I go to the status screen, it says not active. And when I try to activate a caster, it comes up orange.

I had set the main screen protocol to RTCM3, and selected the appropriate tty, but am not sure what else I have to do or if it will even work as is.

Hopefully someone more capable than me is interested enough to take a shot at this...

benpeterson40 commented 2 weeks ago

I have a lc29h-bs and LG290P on order. Hopefully the lg290p will only require a few changes from deece's lc29h-bs rtkbase code.

splee777 commented 2 weeks ago

The commands are different and also the LG290P has a Rover and Base station mode. When it is in Base station mode, it only sends RTCM messages and when you try to enable GGA, GLL etc NMEA messages, it sends them but there is no position data in them. I also tried it in Rover mode and then tried to enable the RTCM messages like on the LC29h. It will only output 1005, 1006 and 1019 but I cannot seem to enable any MSM messages. Oh well, hopefully someone more knowledgeable than me can figure it out....

** Update - my mistake, it seems the LC29H also has a rover and base mode, but the LG290P doesn't support the $PAIR commands.

jaerabr commented 2 weeks ago

Hello, I'm using LG290P in rtkbase, I configured it as follows modo base $PQTMCFGRCVRMODE,W,2*29

activate the Ephemeris $PQTMCFGMSGRATE,W,RTCM3-1019,154 $PQTMCFGMSGRATE,W,RTCM3-1020,15E $PQTMCFGMSGRATE,W,RTCM3-1042,15A $PQTMCFGMSGRATE,W,RTCM3-1046,15E

activated nmea messages $PQTMCFGMSGRATE,W,GGA,10A $PQTMCFGMSGRATE,W,RMC,117 $PQTMCFGMSGRATE,W,GLL,10C $PQTMCFGMSGRATE,W,VTG,10E $PQTMCFGMSGRATE,W,GSA,1*1E

disable rtcm 1005, so that rtkbase can send the corrected coordinate $PQTMCFGMSGRATE,W,RTCM3-1005,0*59

I use it as a base and rtk uhf rover in the field without internet connection

lg290p

comandos

splee777 commented 2 weeks ago

Hmm, I did all that (from factory restore) and nothing shows in my satellites status. I noticed when I enabled GGA and GLL in QGNSS while in Base station mode, there is no position data in the packets. I will try with your exact commands and see if there is any difference. Did you have to change the default MSM messages from 4 to 7? I am only getting 1074, 1084 and 1094 messages, and despite changing to to 7 with the PQTMCFGRTCM command, it never sends 1077, 1087 or 1097 messages.

benpeterson40 commented 2 weeks ago

Maybe firmware between your two is different versions?

jaerabr commented 2 weeks ago

to see the version $PQTMVERNO*58

edited mine is on the latest version (My mistake, I copied it from the email for illustrative purposes only.) $PQTMVERNO,LC29HAANR1103S,2023/12/14,10:12:35 34 the correct version $PQTMVER,1,MODULE,LG290P03AANR01A03S,2024/05/22,18:09:06*36

I have the version update file, but I haven't updated it. I already purchased my updated version, but the files were sent to me by george.gao from Quectel support.

splee777 commented 2 weeks ago

I got it to work by using just your commands. I'm not sure why it didn't work when I did pretty much the same steps. Maybe I enabled some extra stuff or something. I will experiment a bit to find out. But anyway, thanks! I still cannot make the module output MSM7 messages instead of MSM4 though.

I have the latest fw version too, but your version above seems to be for a LC29H module?

image

jaerabr commented 2 weeks ago

I have the latest fw version too, but your version above seems to be for a LC29H module? My mistake, I copied it from the email for illustrative purposes only :)

msm7 $PQTMCFGRTCM,W,7,0,-90,07,06,1,125 msm4 $PQTMCFGRTCM,W,4,0,-90,07,06,1,125 the decimal after the W, choose the message version

splee777 commented 2 weeks ago

I did use that command, and apparently, QGNSS is telling me it is still receiving MSM 4 messages, but when I look at my NTRIP client, it shows it is receiving MSM 7 messages! Something wrong with the Quectel program? edit Requires a save and reboot! ^^

On another note, although RTKBase appears to be working, I'm having difficulty achieving fix. It will sometimes go into float but never achieve fix. Did you have any receiver options, like -TADJ?

jaerabr commented 2 weeks ago

Eu usei esse comando e, aparentemente, o QGNSS está me dizendo que ainda está recebendo mensagens MSM 4, mas quando olho para meu cliente NTRIP, ele mostra que está recebendo mensagens MSM 7! Algo errado com o programa Quectel?

Em outra nota, embora o RTKBase pareça estar funcionando, estou tendo dificuldade em obter a correção. Às vezes, ele entra em float, mas nunca obtém a correção. Você tinha alguma opção de receptor, como -TADJ?

it only activates after restarting the module, I leave the receiver option blank

splee777 commented 2 weeks ago

What do you have in the Local Caster RTCM Message section? It appears that If I put 1074 there, it appears as 1074 in the client, and if I put 1077, it shows up as 1077, regardless of what protocol the LG290P sends.

edit

Ok, I figured out my initial problem was and why it didn't work even though I essentially did all the same configurations. It's embarrasing, but I didn't change the tty port bit rate! I'm used to working with virtual USB serial ports which transfer byte by byte and the bit rate setting doesn't matter, but I forgot this is an actual serial port! That was the source of 95% of my problems. The other 5% with not getting MSM 7 was the requirement of the reboot after changing.

So all is good, the LG290P appears easily configurable to RTKBase....