F5OEO / rpitx

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

Number not recognized when sending pocsag #302

Open Waiker opened 11 months ago

Waiker commented 11 months 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 10 months 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.