No description
Find a file
2019-10-23 01:16:31 +02:00
.gitignore Initial commit 2019-10-22 22:12:01 +02:00
__init__.py fixed structure 2019-10-23 01:10:02 +02:00
LICENSE Initial commit 2019-10-22 22:12:01 +02:00
pocsag.py renamed without dash 2019-10-23 01:16:31 +02:00
README.md Update README.md 2019-10-22 22:20:47 +02:00

python-pocsag

Features:

  • TX Batch, Single Preamble + "X"-repeat of "Y"-messages
  • Supports inverted POCSAG
  • Numeric and ASCII(7bit) supported

Code:

POCSAG Encoder for Python

from pocsag import encodeTXBatch
msgs = []
# Format = [ IsNumeric, Address(also supports A,B,C,D suffix like "133703C"), Message ]
msgs.append([False, "133702", 'PROBE Alarm - AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz.:;#!" 0123456789'])
data = encodeTXBatch(msgs) #, repeatNum = 2, inverted = False