I am trying to use a local SIM to activate my Freematics ONE+ Type B device (hologram doesn't connect), however this requires an APN username and password.
I don't see how to set this in your v5/telelogger code.
Please advise.
I tried adding these values to the config.h, but it did not work.
Code: Select all
#ifndef SERVER_HOST
// cellular network settings
#define CELL_APN "safaricom"
#define APN_USERNAME "saf"
#define APN_PASSWORD "data"
Serial output:
Code: Select all
ACC BIAS:-0.01/-1.02/-0.00
GNSS:NO
OBD:NO
SD:29832 MB total, 1 MB used
File: /DATA/54.CSV
[WIFI] Joining SSID:M4nn
[BUF] 3 samples | 30 bytes | 1/32
[CELL] Activating...
CELL:SIM7070G
IMEI:865456053614234
[CELL] Searching...
APN:safaricom
[BUF] 9 samples | 90 bytes | 3/32
[BUF] 15 samples | 150 bytes | 5/32
[BUF] 20 samples | 194 bytes | 7/32
[BUF] 26 samples | 254 bytes | 9/32
[BUF] 32 samples | 314 bytes | 11/32
+CGREG: 0,2
OK
+CGREG: 0,2
OK
[WIFI] Joining SSID:M4nn
[BUF] 38 samples | 374 bytes | 13/32
[CELL] Activating...
[BUF] 44 samples | 434 bytes | 15/32
CELL:SIM7070G
IMEI:865456053614234
[CELL] Searching...
APN:safaricom
[BUF] 50 samples | 494 bytes | 17/32
[BUF] 56 samples | 554 bytes | 19/32
How to set APN Usename and Password?
Re: How to set APN Usename and Password?
Hi Stanley, please advise?
Re: How to set APN Usename and Password?
Hi Stanley, please advise how the set the APN Username and Password?
-
- Posts: 1
- Joined: Fri Jan 10, 2025 12:31 pm
Re: How to set APN Usename and Password?
To fix this, add a command to set the APN username and password. For SIMCom modems (like SIM7070G), use the AT command:
Set the APN: AT+CGDCONT=1,"IP","<APN>"
Set username and password: AT+CGAUTH=1,1,"<APN_USERNAME>","<APN_PASSWORD>"
Set the APN: AT+CGDCONT=1,"IP","<APN>"
Set username and password: AT+CGAUTH=1,1,"<APN_USERNAME>","<APN_PASSWORD>"
Re: How to set APN Usename and Password?
This video explains the importance of APN settings for mobile data connectivity. Understanding these settings can help users troubleshoot common internet issues.
This helped me get my 4G working. Thanks! Geometry Dash and Drive Mad