WIN96 not getting all the RR data

Status
Not open for further replies.

N0FON

Member
Premium Subscriber
Joined
Aug 7, 2005
Messages
10
Reaction score
0
Location
Holyoke, CO
I am using Win96 to program scanners (pro96 and PRO2096) but when I download the RR data via win96 I don't get all the data that is posted on the site. Why is that?
 

seamusg

Member
Joined
Feb 10, 2004
Messages
2,183
Reaction score
2
Location
Grand Blanc, MI
KB0TQF said:
I am using Win96 to program scanners (pro96 and PRO2096) but when I download the RR data via win96 I don't get all the data that is posted on the site. Why is that?
It is usually a bad character in the DB. It would help if you posted which system you're trying to download.
 

N0FON

Member
Premium Subscriber
Joined
Aug 7, 2005
Messages
10
Reaction score
0
Location
Holyoke, CO
That or do each bank individualy, but not all the data downloads, for instance it says 22 IDs for the state patrol but the site shows 61 IDs
 
Last edited:

DonS

Member
Joined
Jun 17, 2003
Messages
4,099
Reaction score
-2
Location
Franktown, CO
KB0TQF said:
That or do each bank individualy, but not all the data downloads, for instance it says 22 IDs for the state patrol but the site shows 61 IDs
Which 61 IDs are you selecting for download? We'll need to know this to find the "offending" ID (the one that's causing the download to halt at 22 IDs).
 

loumaag

Silent Key - Aug 2014
Joined
Oct 20, 2002
Messages
12,935
Reaction score
11
Location
Katy, TX
I have moved this to the software support forum (since that is where it belongs) and if the offending character is ever found and discussed here, I will try and fix it as soon as possible.
 

DonS

Member
Joined
Jun 17, 2003
Messages
4,099
Reaction score
-2
Location
Franktown, CO
Talk groups 2431 and 2433 have bad characters. They contain character 0x92 instead of a "normal" apostrophe, causing a fatal error in the XML processor.
 

DonS

Member
Joined
Jun 17, 2003
Messages
4,099
Reaction score
-2
Location
Franktown, CO
BTW...

The easiest way to determine where Win96 is barfing is to look at the file XMLDUMP.TXT that Win96 creates (in the directory where WIN96.EXE resides).

The file contains two sections. The first is the raw XML as received from RR. The second is a "parsed" version of the XML, indicating how Win96 has processed the data. By looking at the very end of the file, you can see the last "valid" XML item. You can then look at the first part of the file, find that last valid item, and then look at the next item.

In this case, the last valid item is TGID 2429:
Code:
    Element: name=tg, value=
      Element: name=dec, value=2429
      Element: name=subfleet, value=
      Element: name=desc, value=Prisoner Transport "DCR"
      Element: name=disp, value=
      Element: name=group, value=Colorado Dept. of Corrections
      Element: name=mode, value=D
      Element: name=tgid, value=104060
Looking at the first part of the file, searching for "2429" (including quotes), shows the next item as TGID 2431, which has:
Code:
desc="Denver Woman’s Correctional Facility"
(the apostrophe is the offending character).

If it's assumed that the XML will always contain 7-bit "ASCII" characters (which is an OK assumption until non-7-bit characters are correctly encoded in UTF-8), we can also do the following (from a bash prompt, if you've got it) to find all "bad" elements:
Code:
$ pwd
/c/Program Files/WinXX/

$ grep --v
grep (GNU grep) 2.5

$ grep [^[:print:]] xmldump.txt
<tg dec="2431" subfleet="" desc="Denver Woman's Correctional Facility" disp="" group="Colorado Dept. of Corrections" mode="D" tgid=116823" />
<tg dec="2433" subfleet="" desc="Denver Woman's Correctional Facility" disp="" group="Colorado Dept. of Corrections" mode="D" tgid=116824" />

$
 

N0FON

Member
Premium Subscriber
Joined
Aug 7, 2005
Messages
10
Reaction score
0
Location
Holyoke, CO
I am not sure I understand. There are several lines that contain apostrophes that were parsed correctly.
Why would that apostrophe be "bad"

2412 - 2427 for example
 

N0FON

Member
Premium Subscriber
Joined
Aug 7, 2005
Messages
10
Reaction score
0
Location
Holyoke, CO
ID: 2429, Display = , Desc = Prisoner Transport "DCR"
to me it looks like 2429 is the TG that contains the error
desc="Prisoner Transport &quot;DCR&quot;"
 

DonS

Member
Joined
Jun 17, 2003
Messages
4,099
Reaction score
-2
Location
Franktown, CO
KB0TQF said:
I am not sure I understand. There are several lines that contain apostrophes that were parsed correctly.
Why would that apostrophe be "bad"

2412 - 2427 for example
Because the apostrophe in 2431 and 2433 is not really an "ASCII" (7-bit) apostrophe. It's a different character - one that is not encoded correctly in the XML.
 

DonS

Member
Joined
Jun 17, 2003
Messages
4,099
Reaction score
-2
Location
Franktown, CO
KB0TQF said:
ID: 2429, Display = , Desc = Prisoner Transport "DCR"
to me it looks like 2429 is the TG that contains the error
desc="Prisoner Transport &quot;DCR&quot;"
There's nothing wrong with that one. It's decoded perfectly.
 

DonS

Member
Joined
Jun 17, 2003
Messages
4,099
Reaction score
-2
Location
Franktown, CO
KB0TQF said:
so if I would take the apostrophes out of my dump file, is there a way to use it instead of downloading the info again?
Nope. The dump file is just a record of what Win96 received and processed.

You need to get the DB changed to fix the bad characters. Lou said he'd try to do it, as soon as it was identified here.
 

loumaag

Silent Key - Aug 2014
Joined
Oct 20, 2002
Messages
12,935
Reaction score
11
Location
Katy, TX
DonS said:
Talk groups 2431 and 2433 have bad characters. They contain character 0x92 instead of a "normal" apostrophe, causing a fatal error in the XML processor.
Okay, fixed those two. (Sorry about the delay, but it is christmas you know.)
 
Status
Not open for further replies.
Top