-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPS R16 CP V14 structure not decodable #3
Comments
I seem to be having the same issue (both branches).
|
I have the same problem on a codeplug for EMEA. Investigating the problem seems it is caused by a construct inside the XML that cannot be parsed by etree: <VA_RESERVED Applicable="Enabled" ListID="0">ÿ</VA_RESERVED> This  is not valid utf-8 character and that is why etree gives the error in etree.fromstring() |
Again we have such an issues. What is VA_RESERVED, what CPS setting has an influence on this? So maybe it is possible to avoid it? |
VA - is voice announcement. Seems someone at Motorola put a  as default value but this is not valid character. I remember I got past of this error by with the following changes in codeplug.py: --- a/codeplug.py
- xml = etree.fromstring(result)
- f.write(etree.tostring(xml, pretty_print=True)) Then to create back the encrypted ctb, search the xml for VA_RESERVED and replace the  with xFFFFFF or other valid utf-8 character. Then use the same codeplug.py |
@BogdanDIA is this how your changes should look? `def _decode_cmd(args):
This fails with the following result for me. Traceback (most recent call last): |
I may have actually stumbled on a different codeplug archive format.
This was the error when I read the same radio using an older version of the CPS. |
Has there been any update to this, I have a V14 Codeplug that is failing to read with similar errors above, I have patched the file with the relevant parts from @BogdanDIA However no luck, Still getting the invalid xmlChar value errors |
I still have the same issue and the same error code ,But for the new CPS2 that have the .ctb2 extension . |
There appears to be a problem with CPS 2.0 ID's going into RM 2.0. Was hoping could isolate with this but no luck so far. This was a great tool, hoping someone can update it. |
When I am trying to decode a new R16 / V14 EMEA CP I get these errors:
Traceback (most recent call last):
File "codeplug.py", line 166, in
File "codeplug.py", line 162, in main
File "codeplug.py", line 121, in _decode_cmd
File "src\lxml\etree.pyx", line 3230, in lxml.etree.fromstring (src\lxml\etree.c:81056)
File "src\lxml\parser.pxi", line 1871, in lxml.etree._parseMemoryDocument (src\lxml\etree.c:121236)
File "src\lxml\parser.pxi", line 1759, in lxml.etree._parseDoc (src\lxml\etree.c:119912)
File "src\lxml\parser.pxi", line 1125, in lxml.etree._BaseParser._parseDoc (src\lxml\etree.c:114159)
File "src\lxml\parser.pxi", line 598, in lxml.etree._ParserContext._handleParseResultDoc (src\lxml\etree.c:107724)
File "src\lxml\parser.pxi", line 709, in lxml.etree._handleParseResult (src\lxml\etree.c:109433)
File "src\lxml\parser.pxi", line 638, in lxml.etree._raiseParseError (src\lxml\etree.c:108287)
File "", line 1
lxml.etree.XMLSyntaxError: xmlParseCharRef: invalid xmlChar value 65535, line 1, column 101402
[11032] Failed to execute script codeplug
The decryption key appears to be the same, possible just some structure changes...
The text was updated successfully, but these errors were encountered: