Open ahmedjazeera11 opened 2 years ago
Have you tried communicating directly through some serial shell, like putty? you'll need to use your com port as the "Serial line" and 19200 as the "Speed".
its a good way of determining if you have, at least, a connection, if you do get a connection try sending "AT" and seeing if it returns an "OK"
but I am using raspberry pi 4
if I use screen /dev/pttyUSB0 19200. is communicating and works fine and gives me ‘OK’. but if I use your code nathing happens.
Excellent you know you've connected everything right and you have 2 way comms with the module.
Its actually MakerSnake's code, I just raised the issue a couple of years ago about using with python3. There is a good guide at; http://makersnake.com/remote-controlled-weather-station/rockblock/index.html
alternatively you could use Adafruits CircuitPython library; https://learn.adafruit.com/using-the-rockblock-iridium-modem/raspberry-pi-example
thank you for your response. I will check those links.
@rhyshorner, I am using this code to send data of temperature sensor through rockblock 9602. I installed your library. when I try to run the code. it doesn’t do anything. could you point to me what I suppose to change. by the way I am using USB to TTL Serial Adapter. thanks