Skip to content

Commit

Permalink
support of LTE-M and fix for scan sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
ftylitak committed Jun 2, 2022
1 parent fea312c commit fcc03ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions insighioNode/lib/networking/modem/modem_bg600.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,24 @@ def init(self, ip_version, apn, technology):

def set_technology(self, technology):
if technology == 'NBIoT':
self.send_at_cmd('AT+QCFG="nwscanseq",3,1')
self.send_at_cmd('AT+QCFG="nwscanseq",03,1')
self.send_at_cmd('AT+QCFG="nwscanmode",3,1')
elif technology == 'LTE-M':
self.send_at_cmd('AT+QCFG="nwscanseq",02,1')
self.send_at_cmd('AT+QCFG="nwscanmode",3,1')
elif technology == 'GSM':
self.send_at_cmd('AT+QCFG="nwscanseq",1,1')
self.send_at_cmd('AT+QCFG="nwscanseq",01,1')
self.send_at_cmd('AT+QCFG="nwscanmode",1,1')
else:
self.send_at_cmd('AT+QCFG="nwscanseq",0,1')
self.send_at_cmd('AT+QCFG="nwscanseq",00,1')
self.send_at_cmd('AT+QCFG="nwscanmode",0,1')

def prioritizeWWAN(self):
self.send_at_cmd('AT+QGPSCFG="priority",1,1')
self.send_at_cmd('AT+QGPSCFG="priority",1,0')
utime.sleep_ms(500)

def prioritizeGNSS(self):
self.send_at_cmd('AT+QGPSCFG="priority",1,0')
self.send_at_cmd('AT+QGPSCFG="priority",0,0')
utime.sleep_ms(500)

def connect(self, timeoutms=30000):
Expand Down
1 change: 1 addition & 0 deletions insighioNode/www/step-3-config-cellular.pyhtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import device_info
<select class="form-select" id="input-cell-tech">
<option selected>GSM</option>
<option>NBIoT</option>
<option>LTE-M</option>
<option>auto</option>
</select>
</div>
Expand Down

0 comments on commit fcc03ec

Please sign in to comment.