2023-05-03 07:40 AM
I`m using the EVB-LIV3R evaluation board (TESEO-LIV3R module inside) to parse the $GPGGA NMEA message, and I`m trying to implement the antenna sensing as an extra funcionality. Here`s the binary image firmware subsystem version from this module:
$$GPTXT,DEFAULT GNSS ROM CONFIGURATION*01
$$PSTMVER,OS20LIB_4.3.0_ARM*47
$$PSTMVER,SVCLIB_2.5.0_ARM*1F
$$PSTMVER,GPSAPP_2.3R_ARM*51
$$PSTMVER,BINIMG_4.5.8R_ARM*44
$$PSTMVER,SWCFG_81045315*61
$$PSTMVER,WAASLIB_2.20.0_ARM*6A
$$PSTMVER,STA8090_822bc043*61
$$GPTXT,(C)2000-2011 ST Microelectronics*20
Configuring the antenna sensing algorithm, we have 3 options: RF, ADC and GPIO mode (described better at UM2523, chapter 8). However, I wasn`t able to make this work on any case. I used the $PSTMCFGANTSENS command (description attached) to configure, and added the $PSTMANTENNASTATUS message to the message list, but it always returns the same value.
On RF mode, the status is always 1 (open), even if I connect the antenna on it:
# This is a comment, please read the (->) as a command input to the module and the ($$) as the output from it
# Configure antena sensing to RF mode
-> $PSTMCFGANTSENS,1,1,0,0,0
$$PSTMCFGANTSENSOK*0C
# Configure message list to GPGGA and antenna status only (read UM2523, page 189 to understand the parameters)
-> $PSTMCFGMSGL,0,1,2,10
$$PSTMCFGMSGLOK*49
-> $PSTMSAVEPAR
$$PSTMSAVEPAROK*5C
# Standard serial output example from module:
$$GPGGA,000002.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6E
$$PSTMANTENNASTATUS,1*4C
$$GPGGA,000003.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6F
$$PSTMANTENNASTATUS,1*4C
$$GPGGA,000004.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*68
$$PSTMANTENNASTATUS,1*4C
$$GPGGA,000005.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*69
$$PSTMANTENNASTATUS,1*4C
$$GPGGA,000006.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6A
$$PSTMANTENNASTATUS,1*4C
$$GPGGA,000007.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6B
$$PSTMANTENNASTATUS,1*4C
$$GPGGA,000008.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*64
$$PSTMANTENNASTATUS,1*4C
On ADC and GPIO mode, the status is always 0 (antenna is ok), even if I disconnect the antenna:
# This is a comment, please read the (->) as a command input to the module and the ($$) as the output from it
# Configure antena sensing to ADC mode
-> $PSTMCFGANTSENS,2,1,0,0,0,3,1,62,211
$$PSTMCFGANTSENSOK*0C
# Or configure antenna sensing to GPIO mode (both gives us the same error output, as shown below)
-> $PSTMCFGANTSENS,3,1,0,0,0,0,0,0,0,0,0
$$PSTMCFGANTSENSOK*0C
# Configure message list to GPGGA and antenna status only (read UM2523, page 189 to understand the parameters)
-> $PSTMCFGMSGL,0,1,2,10
$$PSTMCFGMSGLOK*49
-> $PSTMSAVEPAR
$$PSTMSAVEPAROK*5C
# Standard serial output example from module (on ADC/GPIO mode):
$$GPGGA,000014.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*69
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000015.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*68
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000016.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6B
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000017.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6A
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000018.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*65
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000019.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*64
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000020.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6E
$$PSTMANTENNASTATUS,0*4D
$$GPGGA,000021.000,0000.00000,N,00000.00000,E,0,00,99.0,100.00,M,0.0,M,,*6F
$$PSTMANTENNASTATUS,0*4D
I don't know if my configuration process is right, or if this firmware version doesn't support this feature at all (which is weird, based on the UM2523 that says it does)., Any thoughts or suggestions?