bbrasmussen
Member
You're welcome. Glad you got it working!
Gordon's Scanner Radio app too!
Do you know of any easy way to determine if the serial port is providing serial data with my windows pc? I am afraid if it does not work I won't have enough knowledge of the subject to determine if it is really not transmitting serial data or if I have done something else wrong. I am actually currently broadcasting on my 996xt, so maybe I will get the script running on that first to eliminate some possibility of other errors. My 536 will be headed back to Uniden soon for the recall, maybe it should just make a stop at your house on the way...
Hi Joe. Newer RS models won't work because they need RS's proprietary USB adapter which requires a driver that doesn't exist for Linux. But in looking at the owner's manual it looks like the 2052 just uses serial comms, so it should work.
It does use slightly different codes to query the scanner about frequency info. Not very hard to change the Python script to handle that. Unfortunately I don't have a 2052 to debug with. Particularly I'd need to see the response from the scanner to a query so we could parse the data correctly. I'd be happy to point you in the right direction to see if you could get it working. I'll have to see if I can get ahold of one.
Brandon
WI \r
W101 F04540875
freq = serBuffer[7:10] + '.' + serBuffer[10:14]
print(freq)
Brandon -
I've made some progress since my original post. I have reached out to another software creator that does metadata parsing for a Windows app and asked what he was sending to get the frequency data.
So if I do the following:
Code:WI \r
I get the following back:
Code:W101 F04540875
So with that information I've been able to parse the raw serial data using:
Code:freq = serBuffer[7:10] + '.' + serBuffer[10:14] print(freq)
I guess the biggest thing that I'd like to do is plug this into your parser code, Also I was curious as how you the calling of the CSV file with the channel names works. I know that you put the csvFile variable in the head of the script, but how does it know to look up the frequency there (using the metaPy8.py as my base). You'll have to forgive me, I'm a relatively new programmer.
Thanks.
Joe