Connecting a puck to a GSM module to send sms? Possible? #944
Replies: 8 comments
-
Posted at 2017-07-20 by user79451 The gsm would have its own lipo obviously. But I would still like to be able to turn it on just for sending an sms, and then turn off |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-20 by @yerpj You should be able to use USART1 on Then most of the effort is already done for SIM900 and SIM800. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-20 by @gfwilliams Yes, it should definitely be possible. D28/29 are the default UART pins (espruino will use them for the console if they are connected to a UART at power on) but actually you can use any pins on the Puck for it. There isn't currently a library for SMS messaging via AT commands, but there are a few posts on the forum showing what commands to send - and I'm open to making a library for it because I think it'd be pretty useful. And yes - at least on SIM800 there's a pin for power on/power off - so Puck.js could use that to turn GSM on or off (in fact I think sometimes it can even be done with a serial command) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-20 by user79451 That would be amazing. Sadly my programming isn't that good so I rely on copy and pasting examples or a more novice friendly library. But I will try to get it to work. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-21 by @gfwilliams There are a few snippets of code for SMS here: http://forum.espruino.com/conversations/1712/ That may well be enough to get you started, but let me know how you get on. There was some talk of a module being made in that thread, so I just asked the author if anything ever got done |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-23 by user79451 Were you thinking of making a library for sending SMS? What would be the advantage/difference of having a library for it? Noob question, I know... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-24 by @gfwilliams Yes - there's no real difference between me doing it or you using code from the thread. At the end of the day theres some JS code that actually does the interfacing - it's just either in the code that you upload, or pulled in via a I guess it's just be a little easier if there was a library, since all you'd have to worry about is calling |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-24 by @gfwilliams Ok, just done! So as not to hijack the thread, I made a new one here: http://forum.espruino.com/conversations/308106/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-07-19 by user79451
I would like to use a static puck to inform me of the whereabouts and status of another moving puck by sms. That should be possible with the Adafruit FONA or GSM800 GSM module right?
Serial port should be able to control that right? Just wonder if the puck could also turn on the GSM so it isnt on all the time losing battery...
Would be great..
Beta Was this translation helpful? Give feedback.
All reactions