08-26-2021, 12:50 AM
Well, it turns out that I already have the interface code for this! Register S30 is the inactivity timer. However, I do not have this enabled in the code. I will add that for the next update!
The Wiki for the AT Command set (which I follow with the WiModem series) is located here: https://en.wikipedia.org/wiki/Hayes_command_set
You can see the entry for S-Register 30:
S30 Inactivity Disconnect Timer 0–255 tens of seconds 0 (disable)
So, setting S30=1 would set the connection inactivity timer for 10 seconds. ie
ATS0=1 <RETURN>
If you wanted to set the disconnect timer to 5 minutes (300 seconds) you would use ATS0=30 (which is 300/10). Using a value of 0 (the default) disables the Inactivity Disconnect Timer.
The Wiki for the AT Command set (which I follow with the WiModem series) is located here: https://en.wikipedia.org/wiki/Hayes_command_set
You can see the entry for S-Register 30:
S30 Inactivity Disconnect Timer 0–255 tens of seconds 0 (disable)
So, setting S30=1 would set the connection inactivity timer for 10 seconds. ie
ATS0=1 <RETURN>
If you wanted to set the disconnect timer to 5 minutes (300 seconds) you would use ATS0=30 (which is 300/10). Using a value of 0 (the default) disables the Inactivity Disconnect Timer.