Live data from Hacker News

Simple Raspberry Pi Powered SMS Gateway

blog.haschek.at

31–40 of 85 posts

Re: Simple Raspberry Pi Powered SMS Gateway

#31

I made something similar a few years back with a Pi 1 and a GSM "hat". It came with a C SDK so I had to write AT commands to communicate directly with the modem and it worked great until I didn't need it anymore. Its purpose was to text me when my power or internet connection went down at home then I could respond with commands such as to shutdown the servers etc. When power/network came back it would text me the new…

A good free way to achieve this is to use Signal. This project https://github.com/AsamK/signal-cli enables you to send Signal messages from the command line, including from Raspberry Pis. It obviously needs an internet connection to work, but has the added bonus of being more secure than SMS.

Re: Simple Raspberry Pi Powered SMS Gateway

#33

The article is interesting in general, but this line really needs more than "works like a charm": `usb_modeswitch -W -v 12d1 -p 14fe -K -P 14ac -M "55534243000000000000000000000011060000000000000000000000000000"` I mean, I believe you, but ... what on earth IS all of that?

This is a USB Mass Storage SCSI Command Block Wrapper packet as far as I can google out. Content looks like "Test Unit Ready 0001 0001 10 flag=true link=false". Could be completely wrong. Thank you for pointing this out, this is interesting.

55 53 42 43: "USBC"

00 00 00 00: CBW Tag

00 00 00 00: Transfer length

00 00 00 00: CBW direction, LUN, CBW CB length, CBW Command Block

00 00 00 11: CBW CB(cont.)

06 00 00 00: (same)

00 00 00 00: (same)

00 00 00 00: (same)

00 00 00 : (same)

---

00 00 00 00 11 06: TUR LUN0 RSVD RSVD RSV1 0001 0110

00 00 00 00 00 00: TUR LUN0 RSVD RSVD RSVD 00RS VD00

00 00 00 00 00 00: TUR LUN0 RSVD RSVD RSVD 00RS VD00

00 00: ?

Re: Simple Raspberry Pi Powered SMS Gateway

#34
post #2

I was looking to get a dedicated Waveshare GSM HAT for the Pi but Twilio is so dirt cheap that I never really got into messing around with a DIY solution.

I can send unlimited SMS for free with my 5€ monthly plan, so why should I pay?

Hey DeathArrow.

Very very strange I'm the author of the article and I created this post and got the first few comments then when I reloaded the page it says you posted it and I can't upvote the post like it was my own.

What gives? Do you work for ycombinator or somehing? Or did you post it shortly before me and the mods combined our posts and attributed it to you?

Re: Simple Raspberry Pi Powered SMS Gateway

#35
post #22

Is there something similar but for Whatsapp?

https://github.com/AsamK/signal-cli

Funnily enough that was the route I was initially going to go but I got scared because I read that the project is a violation of the ToS and your number _might_ get blocked if you use these third party clients.

That's why I wrote the article on how to do it via SMS with a Pi. I tried to send myself notifications from NodeRed

Re: Simple Raspberry Pi Powered SMS Gateway

#36
post #21
post #2

I was looking to get a dedicated Waveshare GSM HAT for the Pi but Twilio is so dirt cheap that I never really got into messing around with a DIY solution.

At 6 cents/SMS, I find Twilio and similar services way too expensive. Compare that to the unlimited SMS plan that I can get for 2€/month here in France, and setting up a gateway like that becomes very attractive. In my experience it's very unstable however. Sending and receiving SMS can take anywhere from 5 to 30 seconds, and the modem can't do both at the same time. I tried configuring gammu's timeouts, loop delays…

Free's €2 per month is probably one of the best mobile deal in the world :). Beware though, last I checked using their SIM card in something not a mobile phone was against Fred's ToS. I don't know if it have since changed.

Re: Simple Raspberry Pi Powered SMS Gateway

#38
post #35

Earlier quoted context omitted.

https://github.com/AsamK/signal-cli

Funnily enough that was the route I was initially going to go but I got scared because I read that the project is a violation of the ToS and your number _might_ get blocked if you use these third party clients. That's why I wrote the article on how to do it via SMS with a Pi. I tried to send myself notifications from NodeRed

> I read that the project is a violation of the ToS

Could you find that source? Curious precisely what part of ToS it violates.

Re: Simple Raspberry Pi Powered SMS Gateway

#39
post #10

Does anyone know of an inexpensive plan in the US to use with a setup similar to this that sends dozens of text messages/month?

I was investigating solutions for sensor SMS notifications & the best IoT type SIM plan that I came across was https://www.hologram.io/pricing/flexible-data . $1.50/line per month, $0.19/outbound SMS, data is pricey. If you need more SMS, the next cheapest I've used is RedPocket Mobile-- https://www.ebay.com/itm/2-50-Mo-Red-Pocket-Prepaid-Plan-200... - $30/yr for 200 voice/1000 texts/200mb per month on T-Mobile's net…

US Mobile has very cheap plans, and you can build your own.

Re: Simple Raspberry Pi Powered SMS Gateway

#40
post #34

Earlier quoted context omitted.

I can send unlimited SMS for free with my 5€ monthly plan, so why should I pay?

Hey DeathArrow. Very very strange I'm the author of the article and I created this post and got the first few comments then when I reloaded the page it says you posted it and I can't upvote the post like it was my own. What gives? Do you work for ycombinator or somehing? Or did you post it shortly before me and the mods combined our posts and attributed it to you?

Mods combining posts and choosing the wrong winner sounds most plausible. Just email them and they'll make the correction because they do a dang good job.
Post reply on HN