HL7692 AT+IPR save baudrate value automatically to the non volatile memory

Hi!
I’d like to change the communication baud rate between my microcontroller and the modem HL7692. I read at the datasheet that is possible to change the baud rate and automatically save this value to modem memory.

I’m trying the following command:
AT+IPR=38400;W

and this not works, because at the next reset the modem baudrate continues to the default value.

any advice?

I don’t see problem:

ati3
RHL769x.2.24.173100.201709051100.x7120m_1

OK

+SIM: 0

+KSUP: 2
ati9
RHL769x.2.24.173100.201709051100.x7120m_1
HL7692
HL769x.2.24
x7120m
FUSED
2017-09-05 11:32:03
r10943

OK
at+ipr?
+IPR: 115200

OK
at+ipr=38400
OK
üàü

//Here I change the baud rate to 38400
at
OK
at&w
OK
at+cfun=1,1
OK
//after reset, the module works on UART baud rate 38400
ati3
RHL769x.2.24.173100.201709051100.x7120m_1

OK

1 Like

Hi @rafael.dias,
Please try to use the command above with full parameters as
AT+IPR=38400;&W
It looks like the original command missed “&” character

1 Like

hi @Vianney,

thank you for your response.

I tried your suggestion but this didn’t work for me.

Bellow I share my device output:

Turning modem on

Could not receive +KSUP: 0, try changing baudrate
Try saved baudrate: 1843200

+CGREG: 2

+WDSI: 0

+CGREG: 3

+CGREG: 5

+PBREADY

+SIM: 1

+KSUP: 0
ATE1no echo
ATE1
OK
ATE1
OK
ATE1
OK
Baudrate detected

Reading modem’s info

AT+KGSN=3
+KGSN: VE820343691410

OK
AT+KGSN=0
+KGSN: 355465070473828

OK
AT+CGMM
HL7692

OK
AT+CGMI
Sierra Wireless

OK
ATI3
RHL769x.2.26.180400.201802141030.x7120m_1

OK

Manufacturer of modem: Sierra Wireless
Type of modem: HL7692
Modem firmware version: RHL769x.2.26.180400.201802141030.x7120m_1
IMEI: 355465070473828
Serial number: VE820343691410

Entered bridge mode

ati3
RHL769x.2.26.180400.201802141030.x7120m_1

OK
ati9
RHL769x.2.26.180400.201802141030.x7120m_1
HL7692
HL769x.2.26
x7120m
FUSED
2018-02-14 12:02:13
r12309

OK
at+ipr?
+IPR: 1843200

OK
AT+IPR=38400;&W
OK

Turning modem off

========================================================================================
USER: \ MAIN MENU

(1) SYSTEM
(2) CONTROL UNIT
(3) MODEM
(4) FLASH
(5) CAMERA
(6) CAMERA FOCUS

08/12/2020 00:03:34 >> Chosen function: MODEM

========================================================================================
USER: \ MAIN MENU \ MODEM

(1) MODEM SETTINGS
(2) SEND PHOTO
(3) SEND STATION DATA
(4) GET GPS
(5) GET CONF SMS
(6) Download FW
(7) Download APN list
(8) Server redirection
(9) Modem FOTA
(ESC) BACK

08/12/2020 00:03:35 >> Select…no echo
08/12/2020 00:03:40 >> Chosen function: MODEM SETTINGS
no echo

Starting modem process

Turning modem on

Could not receive +KSUP: 0, try changing baudrate
Try saved baudrate: 1843200

+CGREG: 2

+WDSI: 0

+CGREG: 5

+PBREADY

+SIM: 1

+KSUP: 0

+CGREG: 3

+CGREG: 5
ATEno echo
ATE1
OK
ATE1
OK
ATE1
OK
Baudrate detected

Just for sanity check, I tried the same sequence with a HL8548-G and it works as I expected:

Starting modem process

Turning modem on

Could not receive +KSUP: 0, try changing baudrate
Try saved baudrate: 1843200

+WDSI: 0

+KSUP: 0

+PBREADY

+CGREG: 5

+GPSEVINIT: 1
ATE1no echo
ATE1
OK
ATE1
OK
ATE1
OK
Baudrate detected

Reading modem’s info

AT+KGSN=3
+KGSN: ZJ829200490310

OK
AT+KGSN=0
+KGSN: 359516051363416

OK
AT+CGMM
HL8548-G

OK
AT+CGMI
Sierra Wireless

OK
ATI3
RHL85xx.5.5.24.2.201710111800.x6250_2

OK

Manufacturer of modem: Sierra Wireless
Type of modem: HL8548-G
Modem firmware version: RHL85xx.5.5.24.2.201710111800.x6250_2
IMEI: 359516051363416
Serial number: ZJ829200490310

Entered bridge mode

ati3
RHL85xx.5.5.24.2.201710111800.x6250_2

OK
ati9
RHL85xx.5.5.24.2.201710111800.x6250_2
2017/10/11 18:38:28
r6260

OK
at+ipr?
+IPR: 1843200

OK
at+ipr=38400
OK

Turning modem off

========================================================================================
USER: \ MAIN MENU

(1) SYSTEM
(2) CONTROL UNIT
(3) MODEM
(4) FLASH
(5) CAMERA
(6) CAMERA FOCUS

08/12/2020 00:23:24 >> Select…no echo
08/12/2020 00:23:26 >> Chosen function: MODEM

========================================================================================
USER: \ MAIN MENU \ MODEM

(1) MODEM SETTINGS
(2) SEND PHOTO
(3) SEND STATION DATA
(4) GET GPS
(5) GET CONF SMS
(6) Download FW
(7) Download APN list
(8) Server redirection
(9) Modem FOTA
(ESC) BACK

08/12/2020 00:23:28 >> Chosen function: MODEM SETTINGS

Starting modem process

Turning modem on

Could not receive +KSUP: 0, try changing baudrate
Try saved baudrate: 1843200
no echo
no echo
Try baudrate from the list: 1843200
no echo
no echo
Try baudrate from the list: 921600
no echo
no echo
Try baudrate from the list: 460800
no echo
no echo
Try baudrate from the list: 230400
no echo
no echo
Try baudrate from the list: 115200
àüno echo
àüno echo
Try baudrate from the list: 57600
ÄØüno echo
ÄØüno echo
Try baudrate from the list: 38400
ATE1
OK
ATE1
OK
ATE1
OK
Baudrate detected
Configuring modem to saved baudrate
AT+IPR=1843200
OK
AT&W
OK

Reading modem’s info

AT+KGSN=3
+KGSN: ZJ829200490310

OK
AT+KGSN=0
+KGSN: 359516051363416

OK
AT+CGMM
HL8548-G

OK
AT+CGMI
Sierra Wireless

OK
ATI3
RHL85xx.5.5.24.2.201710111800.x6250_2

OK

Manufacturer of modem: Sierra Wireless
Type of modem: HL8548-G
Modem firmware version: RHL85xx.5.5.24.2.201710111800.x6250_2
IMEI: 359516051363416
Serial number: ZJ829200490310

Modem Baudrate: 1843200

Reading SIM’s info

ATE1
OK
ATE1
OK
ATE1
OK
AT+CPIN?
+CPIN: READY

OK
AT+CIMI
901405100001362

OK
AT+CCID
+CCID: 89882806660000013625

OK
AT+CPIN?
+CPIN: READY

OK
AT+CNUM
OK
SIM’s MCC: 901
SIM’s MNC: 40
SIM’s CCID: 89882806660000013625
SIM’s CIMI: 901405100001362
SIM’s PIN: READY

Basic configuration of the modem

ATE1
OK
ATE1
OK
ATE1
OK
AT+CPIN?
+CPIN: READY

OK
ATE1
OK
ATE1
OK
ATE1
OK
ATZ
OK
AT+KSLEEP=2
OK
AT&D0
OK
AT&K3
OK
AT+CPMS=“ME”,“ME”,“ME”
+CPMS: 4,4,4,4,4,4

OK
AT+CMGF=1
OK
AT+CMEE=1
OK
AT+KSREP=1
OK
AT+KAAT=1
OK
AT+KGSMAD?
+KGSMAD: 0,1,120,5,7

OK
AT+CGREG=1
OK
AT+CNMI=2,1,0,0,0
OK
AT+COPS=3,2
OK
AT+COPS?
+COPS: 0,2,“23203”,2

OK
AT+WDSI=1023
OK
AT&W
OK
AT+CGDCONT=1,“IPV4V6”,""
OK
AT+CFUN=1,1
OK
Waiting for complete initialization of the modem (+PBREADY)

+WDSI: 0

+KSUP: 0

+PBREADY
(1) GET MODEM INFO
(2) SEND IDENTIFICATION SMS
(3) UNLOCK SIM CARD (PIN CODE)
(4) SIGNAL QUALITY GRAPH
(5) APN OF CUSTOMER
(6) DELETE ALL SMS
(A) Check available APNs
(ESC) BACK

08/12/2020 00:27:07 >> Select…

how about changing to baud rate 38400 and then type AT&W ?

@jyijyi , this do not work for me.

This modem is in my equipment and the communication between my terminal and the modem is managed by a microcontroller with fixed baudrate. When I change the baudrate value, the microcontroller is not able to communicate with the modem.

Then that is your mcu problem.
Once you changed baud rate of module, you need to change baud rate of mcu together

So, we can conclude that we can not use multiple commands with one line when are using the IPR command.

Now it works on your side?

It is not working. .

No idea as i don’t see problem on my side if separating the AT&W into next command, I still suspect this is your MCU problem.
Maybe you can try latest fw