F5OEO / rpitx

RF transmitter for Raspberry Pi
GNU General Public License v3.0
4.06k stars 539 forks source link

Number not recognized when sending pocsag #302

Open Waiker opened 1 year ago

Waiker commented 1 year ago

Hello. I'm trying to send a message using the pocsag protocol using python. I check with the PDW utility - the number is not displayed

python code:

import os
import array as arr

numbers = ['681572','635836','2017596']

command = F'echo -e "{numbers[0]}:{numbers[0]}" | sudo ./pocsag -f 153280000 -r 1200 -b 3'
os.system(command)

PDW:

image

But if I use manual command entry, PDW recognizes the address.

echo -e "123456:681572" | sudo ./pocsag -f 153280000 -r 1200 -b 3

image

What is the problem?

penfold42 commented 1 year ago

must be some weirdness with how python os.system() passes arguments

Either remove the "-e" or replace echo with /bin/echo and it seems to work.