Serial Communication with SMS Modem (FONA) Posted on October 18, 2015 at June 27, 2016 by Elijah 2944 0 import serial ser = serial.Serial(port='/dev/ttyAMA0', baudrate=115200, timeout=1) cmd="AT\r" ser.write(cmd.encode()) msg=ser.read(64) print(msg) 123456 import serialser = serial.Serial(port='/dev/ttyAMA0', baudrate=115200, timeout=1)cmd="AT\r"ser.write(cmd.encode())msg=ser.read(64)print(msg) Keep Reading : GPS RESPONSE CODE ORDER Serial Commands used by our Satellite transciever. python to send a SMS message GPS AT Commands
GPS AT Commands Posted by Elijah - October 18, 2015 0 AT+CGPSPWR? if off : AT+CGPSPWR=1 Get status : AT+CGPSSTATUS? Get GPS : AT+CGPSINF RESET CODES : What mode ? –…
while loop Posted by Elijah - October 18, 2015 0 [crayon-67e2762d6cdcf410013131/] Keep Reading : Pi Camera Resolution Fix Hello World LED Blinking Wire camera to pi
Read email from a system pipe into python Posted by Elijah - August 15, 2016 0 #!/usr/local/bin/python import sys import email full_msg = “” for line in sys.stdin full_msg += line msg = email.message_from_string(full_msg) to =…
Updated GPS & Battery commands for Sim808 / FONA Shield. Also works for LoNet Sim808 Posted by Elijah - October 23, 2015 0 Enable Charging Function It is recommended to execute this process when first time to use the module. In the Serial…
maserCycle.py – Cycle through lasers on servos and draw lines Posted by Elijah - March 17, 2017 0 This is the third of five articles on my 2017 laser science project "Rock, Paper, Lasers." This one was just…