I can’t get geofence running , seems that the device is acepting commands like $PAIR890 ,but I’m not getting response , my firm is the 12A03S.($PQTMVERNO,LC76GABNR12A03S,2024/04/14,18:43:52*3C)
Need a firm update ?
Thanks
I can’t get geofence running , seems that the device is acepting commands like $PAIR890 ,but I’m not getting response , my firm is the 12A03S.($PQTMVERNO,LC76GABNR12A03S,2024/04/14,18:43:52*3C)
Need a firm update ?
Thanks
can you try to get the status for GEOFENCE? Run below command:
Get Command//
$PQTMCFGGEOFENCE,R,<Index>*<Checksum><CR><LF>
Example Get Command:
$PQTMCFGGEOFENCE,R,0*3E
ResponsetoGet command:
$PQTMCFGGEOFENCE,OK,<Index>,<Status>[,<Res>,<Shape>,<Lat0>,<Lon0>,<Lat1/Radius>,<Lon1>,<Lat2>,<Lon2>,<Lat3>,<Lon3>]*<Checksum><CR><LF>
If GEOFENCE return error, the output as below:
$PQTMCFGGEOFENCE,ERROR,<ErrCode>*<Checksum><CR><LF>
Best Regards.
Hi mohamad , thanks for the reply
I’m starting using Quectel devices…
initially I doubt about the firm release 12A03S, seems that there are two commands available the $PAR and the $PQTM , but not sure about wich is the right.
I’m sending: $PQTMCFGGEOFENCE,W,0,1,0,0,41.575809,2.006232,4.014 , and the device reply is : $PQTMCFGGEOFENCE,OK74.
When sending the command : $PQTMCFGGEOFENCE,R,03E , the device reply is :$PQTMCFGGEOFENCE,OK,0,1,0,0,41.575863,2.006298,4.0000007B
But I don’t get any PQTMGEOFENCESTATUS messages , I’m sending $PQTMGEOFENCESTATUS,R,068 and $PQTMGEOFENCESTATUS0A , the device never anwers the command.
I’m checking the LC76G&LC86G Series GNSS Protocol Specification V1.4 , but not sure about if my PQTMGEOFENCESTATUS is well assembled.
Thanks
The reason you are not receiving any $PQTMGEOFENCESTATUS messages is because, in the PQTM protocol, this is an autonomous output message rather than a command that can be queried using the “,R” parameter.
$PQTMGEOFENCESTATUS,R,0*68$PQTMGEOFENCESTATUS is defined strictly as an output message and does not support “Read (R)” or “Write (W)” operations.$PQTMGEOFENCESTATUS*0ATo receive the status messages, you need to configure the message output rate using the appropriate command:
$PQTMCFGMSGRATE,W,PQTMGEOFENCESTATUS,1,1*5C
This sets the output rate to once per position fix.
(The final “1” indicates the message version, which is required for PQTM messages.)
$PQTMCFGMSGRATE,R,PQTMGEOFENCESTATUS,1*44
Even after enabling the message, the module will only output $PQTMGEOFENCESTATUS when the following conditions are met:
$PQTMSAVEPAR*5A
Once enabled and with a valid fix, the message will appear as follows:
$PQTMGEOFENCESTATUS,1,093444.000,2,0,0,0*29
Where:
1 → Message version093444.000 → UTC time2,0,0,0 → Status of Geofences 0–3
2 = Outside0 = Unknown (e.g., disabled or no evaluation)For the GNSS Protocol Specification, you may download it from here: Quectel_LC26G&LC26G-T&LC76G&LC86G_Series_GNSS_Protocol_Specification_V1.5 | Quectel
Mohamad , thanks for your excellent reply.
Yes ,with your advice it is now working , I’m, receiving the geofence status messages.
Thank you very much , I was stucked some days with this…