FX30 for site survey coverage

Hi ,

I would like to use the fx30 as site survey network coverage where I can just have the app install inside the fx30 and drive around the place to capture the cell id / signal strength info .

I have check the below doc but still unsure how to go about it? Any advise and sample app i can start with ?

https://docs.legato.io/latest/c_le_cellnet.html#c_le_cellnet_requesting

Thanks in advance.
J

Hi SWAPAC,

Unless you need a legato app, you can also use a simple script like the one in attachment below:

sitesurvey.sh (254 Bytes)

Copy in your /home/root/ folder for example
Make it executable

chmod +x sitesrvey.sh

execute:

./sitesurvey.sh

It will log in a file called survey_result.txt the response to AT!GSTATUS + time every 10s

!GSTATUS result will include the requested details (cell ID, Channel, signal strenght, and even more…). See example:

!GSTATUS:
Current Time:  3555             Temperature: 34
Modem Mitigate Level: 0         ModemProc Mitigate Level: 0
Reset Counter: 1                Mode:        ONLINE
System mode:   LTE              PS state:    Attached
LTE band:      B8               LTE bw:      1.4 MHz
LTE Rx chan:   3552             LTE Tx chan: 21552
LTE CA state:  INACTIVE
EMM state:     Registered       Normal Service
RRC state:     RRC Idle
IMS reg state: No Srv
PCC RxM RSSI:  -66              RSRP (dBm):  -76
PCC RxD RSSI:  0                RSRP (dBm):  0
Tx Power:      0                TAC:         058E (1422)
RSRQ (dB):     -9               Cell ID:     0193821A (26444314)
SINR (dB):     22.0

Stop the recording:

Ctrl+c

Check the result:

cat survey_result.txt

It is just an example and you probably need to improve a bit but it should anser your need

Let me know if it helps

Hi BBO,

I have copied the script but got error line 16 as below:

root@fx30:/home# ./sitesurvey.sh
: no process killed
CTRL+C to quit
./sitesurvey.sh: line 16: syntax error: unexpected end of file (expecting “do”)

Can you please advise whats wrong with my steps?

Thank you.

Hi SWAPAC,
I did the test based on WP7702.
Can you check if the procedure works on WP770x?

Hi BBO,

I test it on FX30 WP8548.
I tried issue the command manually and it works but not the executing of the script.

OK
at!gstatus?
!GSTATUS:
Current Time: 52 Temperature: 31
Bootup Time: 5 Mode: ONLINE
System mode: WCDMA PS state: Not attached
WCDMA band: WCDMA 2100
WCDMA channel: 10688
GMM (PS) state:REGISTERED NORMAL SERVICE
MM (CS) state: LA Start NORMAL SERVICE

WCDMA L1 State:L1M_DCH LAC: 0139 (313)
RRC State: CELL_DCH UTRAN Cell ID: 0139 7B9C (313 31644)
RxM RSSI C0: -66 RxD RSSI C0: -106
RxM RSSI C1: -106 RxD RSSI C1: -106

IMS Reg State: UNKNOWN IMS Mode: Not Support
IMS Srv State: UNKNOWN SMS,UNKNOWN VoIP

OK

Thank you.

You can try with my script .script_jyi.sh (240 Bytes)

Hi jyijyi,

I have tested the scripts but seems like nothing result inside.
Kindly find result as below:
root@fx30:~# ./script_jyi.sh
CTRL+C to quit
loop 0
Mon Jul 9 06:10:03 UTC 2018
loop expr $i + 1
Mon Jul 9 06:10:13 UTC 2018
loop expr $i + 1
Mon Jul 9 06:10:23 UTC 2018

Mon Jul 9 06:10:03 UTC 2018
loop expr $i + 1
Mon Jul 9 06:10:13 UTC 2018
loop expr $i + 1
Mon Jul 9 06:10:23 UTC 2018

Can you advise possible to do the legato app for this same like… "EthernetRouter.wp85.update " as previously installed inside and it will runs automatically with the SIM.

Please try again with this script. It is working on my board.script.sh (257 Bytes)

Hi,

I have tried the script .sh, and I am able to execute it.
Possible to have guide how to have app like
"EthernetRouter.wp85.update " as previously installed inside and it will runs automatically with the SIM. ?

thanks.

Where is the ""EthernetRouter.wp85.update "? you mean sample code?

Hi @SWAPAC
if you refer to doing the legato application (.wp85.update) as opposed to a shell script, this is a whole different thing.
However, you can refer to another thread about launching a script at startup.


I guess it should help you to address your need to have script to run automatically.
Let me know if it helps

BBO,

How about geo location details? AT+!GPSTRACK ?

Please advise.

Thanks.

Sun Jan 6 00:05:46 UTC 1980
AT!GSTATUS?
!GSTATUS:
Current Time: 345 Temperature: 31
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0
Reset Counter: 1 Mode: LOW POWER MODE

OK
AT!GPSSTATUS?
Current time: 1980 01 06 6 00:05:46

1980 01 06 6 00:00:00 Last Fix Status = FAIL, FAILCODE = 9
1980 01 06 6 00:00:00 Fix Session Status = FAIL, FAILCODE = 9

No TTFF available

OK
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm data connect
Setting up profile 1
Connecting … failed
Sun Jan 6 00:07:05 UTC 1980 - Connection Failure: LE_FAULT
root@swi-mdm9x28-wp:~#

How can I change my clock ?

hello @SWAPAC

how about

cm rtc set

https://docs.legato.io/latest/toolsTarget_cm.html#toolsTarget_cm_rtc

Hello BBO,

root@fx30:~# cm rtc read
28 Aug 2018 12:09:27
root@fx30:~#
root@fx30:~#
root@fx30:~# more survey_result.txt
loop 0
Sun Jan 6 00:44:22 UTC 1980
loop 1
Sun Jan 6 00:44:28 UTC 1980
AT!GSTATUS?
!GSTATUS:
Current Time: 2668 Temperature: 31
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0
Reset Counter: 1 Mode: ONLINE
System mode: LTE PS state: Not attached
LTE band: No band LTE bw: 1.4 MHz
LTE Rx chan: 0 LTE Tx chan: 4294967295
LTE CA state: INACTIVE
EMM state: Deregistered Attach Needed
RRC state: RRC Releasing
IMS reg state: No Srv

PCC RxM RSSI: 0 RSRP (dBm): 0
PCC RxD RSSI: 0 RSRP (dBm): 0
Tx Power: 0 TAC: FFFF (65535)
RSRQ (dB): 0 Cell ID: FFFFFFFF (4294967295)
SINR (dB): 0

OK
AT!GPSAUTOSTART?
enable: 2
fixtype: 1
maxtime: 180 seconds
maxdist: 50 meters
fixrate: 1 seconds

OK
AT!GPSLOC?
Not Available

OK
AT!GPSSTATUS?
Current time: 2018 08 28 1 12:07:17

1980 01 06 6 00:00:00 Last Fix Status = FAIL, FAILCODE = 9
1980 01 06 6 00:43:21 Fix Session Status = ACTIVE

No TTFF available

OK

Can advise whats wrong on my date on my logging does not match the rtc set?

Hello @SWAPAC

Please note that RTC time and system time are different. If you set RTC time it won’t affect system time and vice versa. However, they are synchronized.
you can refer to the dedicated article on legato.io explaining the difference:
https://docs.legato.io/latest/howToSetUserTimebase.html

you can also refer to the following post which gives an example of command line to set the system time using NTP service and then set RTC based on the system time:

Hope it clarifies the situaiton