Build a box
Cool. We can now send stuff to old pagers, but really, what use could this possibly serve? I thought it'd be nice to make a system that can be used to monitor my network at home, and warn me as soon as something important happens, like network issues or power loss. I've designed a small PCB that allows me to do exactly that.
It has:
- ATMega168 (you could probably fit the code in an 8 kbyte device like an ATMega88 if you cleaned up some of my mess)
- HLK-RM04 module for network connectivity
- Dual RJ45 for expandability (HLK-RM04 needs to be flashed with OpenWRT for that to work)
- Supercaps for sending messages to pagers when power fails (2x 2.7v 30F)
- Cheap eBay step-up converter
- Support for HopeRF SI4432 (1 Watt) based modules and eBay noname SI modules modules
- ISP header for debugging
- FTDI FT232RL for USB connectivity
Using the PHP classes in the library, it can send syslog messages to pagers. The AVR code does all of the POCSAG handling, and has triggers built-in for when the server fails to check in within some time, or when power fails. The HLK-RM04 is used in the factory default setting, as a pretty dumb tcp->serial converter. You could do all kinds of stuff on the HLK-RM04 though; it's a fairly powerful little thing running linux.
After designing the board I found out I made a mistake in connecting voltage-measuring line. I've connected the supercap output line directly to the AD converter input, but didn't connect anything to AVCC or VREF. Since the AVR is running on 3v3, a 5v line from the supercaps won't work very well in this configuration. A botch 1:10 voltage divider should be connected in between this trace, ideally with a small cap to stabilize everything out. The AVR's reference is set to the internal 1v8 bandgap, and the 5v line divided by 10 falls nicely in between this value. I made a fix for this in the current designs for the boards.
I've also left the 'TEST' pin on the FTDI floating. (Pin 26). It should be tied to ground, or it won't work properly. Fortunately, the pin next to it is ground, so dragging a little bit of solder over it will do the trick. The FTDI is there for debugging or directly driving the AVR, and is not strictly necessary. You can leave it out if you don't need it.
Also, not all RJ45 connectors are created equal. The HLK-RM04 module requires a module with integrated magnetics, or it won't work. The pinout for the connector needs to match too; some parts have a different pinout and may not work. Verify and double-check with the part in the schematic. It should be compatible with the cheap HR911105A sockets on eBay.
I ordered the boards from dirtypcbs.com. Very nice quality. Shipping takes some time though, but for their prices I'm not complaining. The board and components fit nicely in an extruded case from eBay. Dremel'ing the ethernet plugs out of the faceplate is a little annoying though.
I've received far more PCB's than I could possibly use. I'm giving away 7 boards (3 left!), if anyone is interested in building one let me know! (mail(A)<website's domain.nl>)
All the code and schematics are available on Github
Some references:
- POCSAG Protocol reference with some nice diagrams, much nicer than my fixed-width ascii foo
- Pager information, schematics, software
- Pager programming software not sure yet how usefull it is, but it may allow you to reprogram RICs and stuff
- PDF file from New Zealand with information what a pager should do. Very helpful.
- POCSAG transmissions from an Arduino looks cool! I'm using his CRC generating code in the project. Credit goes to him!
- A complete POCSAG Infrastructure with a much larger frequency range. Looks cool!
- Osmocom, a platform for open source mobile communication. Inspiring stuff!
Comments
-
Awesome proyect!, really looking forward to make one for myself, i have like 3 old pocsag pagers that would be cool to revive and use for system alerts and other fun stuff, already ordered some parts from ebay, i want one of your spare boards if you can.
Thanks.
-
You've done a service to Hackerdom on several levels.
With our skills- comes the mindfulness of *RESPONSIBILITY* for what might affect others. That said, your work opens up potential use of this legacy hardware for many worthy applications.
Lest we forget, Infrastructure for Communications is taken for granted by too many folks. Having capability for alternate Paging systems might be a LIFESAVER if authorized groups use it properly.
-
Thank you for your kind words! I'd like to think people read this and use it as an inspiration to build stuff of their own.
Communication networks are really important nowadays, but the thing people tend to forget, is that disaster does happen. Networks go down, electronics break every once in a while. If you want to stay in touch with the rest of the world, backups may be pretty important at some point. What better way to learn about this stuff than building transmitters yourself.
Also, a big thumbs up for the folks over at Osmocom. Inspiring stuff! -
I sure wish this article was around 15 years ago when I had boxes of old pagers in the garage. Great work!
B- -
Hey Jelmer,
im trying to build your Project on an ATMEGA328P (Arduino Uno base, without Bootloader, 5 Volt Levels, SI4432 Shield)What are your high and low fuse settings?
Thanks for your great work!
Regards,
Sebastian
-
Dear Jelmer
I have read your pocsag article with great interest. I think it would be possible to send these packets from a Raspberry Pi and no additional hardware. As you may know, the RPi has a built-in pll which can be FM-modulated with a wav audio clip. Now I will look for the way to obtain the final bit stream prior to fsk modulation.
Regards -
Please sell me one.
-
Hello, awesome work, I have several old 1980s motorola Bravo pagers that still function. could I pay you to build me something to make them work around my house for fun? thanks in advance.
-
Olá me vende uma plaquinha dessas pronta?
-
Great project, just wondered if you have now seen the RPITX project, raspberry pi used as an RF generator and pocsag encoder straight out of a GPIO pin, output bandpass filter is a must due to harmonics and rang is very low as RF signal is probably only about 5mW but good for testing pagers.
-
Hey there!
I am trying to experiment a bit more with digital RF and wondered whether you still have a pcb board for the pocsag project laying around you'd give away. I am thinking about building a prototype for a custom pager system that I can use for work but am unsure if the idea is good enough to really invest time and ressources at the moment.
Kind regards from Leipzig, Germany
Alex