You're welcome. Glad you got it working!
What is this?? Have I missed something?Gordon's Scanner Radio app too!![]()
If you are simply trying to confirm serial data to the computer from the scanner you can use hyperterminal in windows. I am using a 396xt so I can only assume the 436 is similar. Set the C-Ch output on scanner and <hold> on a trunked system. Set hyperterminal to 8-n-1 and the flow control xon - xoff. You should see data flashing and the system type in the terminal window.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...
Brandon -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)
Sorry for the slow reply...Holidays have been busy.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:
I get the following back:Code:WI \r
So with that information I've been able to parse the raw serial data using:Code:W101 F04540875
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.Code:freq = serBuffer[7:10] + '.' + serBuffer[10:14] print(freq)
Thanks.
Joe