Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rockBlock code #2

Open
ahmedjazeera11 opened this issue Nov 13, 2021 · 5 comments
Open

rockBlock code #2

ahmedjazeera11 opened this issue Nov 13, 2021 · 5 comments

Comments

@ahmedjazeera11
Copy link

@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

@rhyshorner
Copy link

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"

@ahmedjazeera11
Copy link
Author

but I am using raspberry pi 4

@ahmedjazeera11
Copy link
Author

if I use screen /dev/pttyUSB0 19200. is communicating and works fine and gives me ‘OK’. but if I use your code nathing happens.

@rhyshorner
Copy link

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

@ahmedjazeera11
Copy link
Author

thank you for your response. I will check those links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants