I found the informative content to be incredibly engaging and I am grateful for the effort you put into writing itJust a quick wrap-up here for anyone else who ends up in the same boat as I've just been. I knew what I wanted to do. I was pretty sure it was going to work. It's been a mixture of fun/frustration getting my set up working. My project is reading data off a couple of websites, then when certain conditions are hit, send me an sms. Have this running continuously.
Raspberry pi 4B + Pusokei LTE hat + Quectel EC200A-AU (with pre-pay sim card).
My longest stumbling block had been getting anything useful back from the Quectel module once I started trying to send AT commands with it. I kind of figured out that the interfacing wasn't correct, but continued as I was getting some readable data back from it. The big frustration was why can I not use minicom to test directly with it.
Then I ended up back at this youtube video I'd bookmarked a while back and the penny dropped.
https://youtu.be/sv5zYfwl0wk?si=dToybybJILVN6XYA
So, as soon as I ran minicom using ttyUSB1, rather than the ttyUSB0 I had up until now, minicom was now (a) giving me a usable cursor (b) sending AT commands and (c) giving me 'OK' messages. Yay.
The last stumbling block was why is my rpi clock out, actually, why can I not use a brower anymore. Well this was a pretty quick fix and kind of circled back to where I'd come from i.e. using ttyUSB0 was sending back data. And if I had minicom open and hard reset the LTE hat, then the screen would start filling up with all sorts. Well, ttyUSB0 would be taking over as the provider of internet connection.
So, steps for anyone here that has been having the same problems as myself when only wanting the module to send SMS with your rpi connected to your home internet are;
Make sure you use the correct USB# for SMS function.
Then from your script make sure you disable ModemManager (as this takes hold of the module and it won't be available from your script)
Then stop (in my case) ttyUSB0 so that your rpi wifi is now the point of contact.
Cheers
Hamish.
Statistics: Posted by shalena45 — Wed Apr 10, 2024 7:02 pm