Last active
October 9, 2022 09:41
-
-
Save poulou0/03b1938c14fda470861ca97c7c8033af to your computer and use it in GitHub Desktop.
minicom for GSM/GPRS/GNSS/Bluetooth HAT for raspberry pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SIM800L Troubleshooting guide | |
https://youtu.be/qI8vdiQdXtA | |
Raspberry Pi - Using a GPRS Modem for Network | |
https://youtu.be/T2NBpfgfPaI | |
minicom -D /dev/ttyUSB0 -b 115200 | |
on windows - setup a new connection or network | |
//no username or password | |
Go to "connect to the internet" | |
use dialup | |
phone number: *99# | |
username: | |
password: | |
on linux | |
dmesg (prints the message buffer of the kernel.[2] The output includes messages produced by the device drivers.) | |
############### | |
### GENERAL ### | |
############### | |
// check operators | |
AT+COPS=? | |
+COPS: (2,"vodafone","voda NL","20404"),(1,"T-Mobile NL","TMO N","20416"),(1,"KPN MOBILE","NL KPN","20408"),,(0-4),(0-2) | |
// check if sim is registered | |
// x,1 registered | |
// x,2 not registered | |
// x,3 registered denied | |
// x,4 unknown | |
// x,5 registered, roaming | |
AT+CREG? | |
+CREG: 0,5 | |
// check signal quality | |
// <10 Marginal, >=10 OK, >=20 Excellent | |
AT+CSQ | |
+CSQ: 24,0 | |
########### | |
### SMS ### | |
########### | |
// set SMS to text mode | |
// 0 PDU mode | |
// 1 text mode | |
AT+CMGF=1 | |
// read SMS center | |
AT+CSCA? | |
+CSCA: "+306942190000",145 | |
// set SMS center | |
AT+CSCA="+306942190000" | |
// read SMS in pos 1 | |
AT+CMGR=1 | |
// send SMS to number | |
AT+CMGS="+31613868608" | |
> Hello cutie pie ::)) | |
> [Ctrl+z] | |
+CMGS: 4 | |
############ | |
### CALL ### | |
############ | |
// enable CLIP (Calling Line Identification Presentation) notification | |
AT+CLIP=1 | |
// answer phone call | |
ATA | |
// make a phone call (note the ; is important) | |
ATD+31613868608; | |
// hang up | |
ATH | |
############ | |
### GPRS ### | |
############ | |
// check the state | |
AT+CGATT? | |
+CGATT: 1 | |
########### | |
### GPS ### | |
########### | |
//turn on the GPS | |
AT+CGNSPWR=1 | |
//send data received to UAR | |
AT+CGNSTST=1 | |
AT+CGNSTST=0 | |
// more readable NMEA response sentence | |
// <GNSS run status>,<Fix status>,<UTC date & Time>, | |
// <Latitude>,<Longitude>, | |
// <MSL Altitude>,<Speed Over Ground>,<Course Over Ground>, | |
// <Fix Mode>,<Reserved1>,<HDOP>,<PDOP>, | |
// <VDOP>,<Reserved2>,<GNSS Satellites in View>, | |
// <GNSS Satellites Used>,<GLONASS SatellitesUsed>, | |
// <Reserved3>,<C/N0 max>,<HPA>,<VPA> | |
AT+CGNSINF | |
+CGNSINF: 1,1,20220122135723.000,52.369585,4.909904,-11.926,0.00,0.0,1,,1.0,1.3,0.8,,6,9,7,,37,, | |
// turn off the GPS | |
AT+CGNSPWR=0 | |
########## | |
### BT ### | |
########## | |
// power on | |
AT+BTPOWER=1 | |
// make discoverable with a name | |
AT+BTHOS="test" | |
// show the name | |
AT+BTHOST? | |
+BTHOST: test,2e:98:27:93:62:61 | |
// search | |
AT+BTSCAN=1,10 | |
// request to pair | |
AT+BTPAIR=0,1 | |
// power off | |
AT+BTPOWER=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment