| Anonymous | Login | Signup for a new account | 2010-09-08 04:55 UTC |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0000075 | [FreeEMS-Tuner] User Interface | minor | always | 2008-11-28 00:50 | 2009-02-15 08:24 | ||
| Reporter | Fred | View Status | public | ||||
| Assigned To | sry_not4sale | ||||||
| Priority | normal | Resolution | fixed | ||||
| Status | closed | Product Version | |||||
| Summary | 0000075: Fails to display hex for large packet | ||||||
| Description |
Traceback (most recent call last): File "/home/fred/tuner/gui/__init__.py", line 138, in OnIdle self.CommsReceive() File "/home/fred/tuner/gui/__init__.py", line 322, in CommsReceive comms.getConnection().recieve() File "/home/fred/tuner/comms/Serial.py", line 181, in recieve watcher(packet) File "/home/fred/tuner/gui/commsDiagnostics.py", line 86, in printRecievedPacket self.insertRow(response) File "/home/fred/tuner/gui/commsDiagnostics.py", line 104, in insertRow self.SetCellValue(self.row, 3, payload_hex_hum) File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/grid.py", line 1971, in SetCellValue return _grid.Grid_SetCellValue(*args, **kwargs) File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 66: unexpected code byte |
||||||
| Additional Information |
Changes I made over what Aaron gave me to get this far : fred@rwdlsd:~/tuner$ git diff diff --git a/protocols/FreeEMS_Vanilla/0_1.py b/protocols/FreeEMS_Vanilla/0_1.py index 2d8e758..9d36255 100644 --- a/protocols/FreeEMS_Vanilla/0_1.py +++ b/protocols/FreeEMS_Vanilla/0_1.py @@ -158,7 +158,7 @@ class protocol: 'FixedConfig2LocationID 25', 'IATTransferTableLocationID 26', 'CHTTransferTableLocationID 27', - 'MAFTransferTableLocationID 28', + 'MAFTransferTableLocationID 128', ] _memory_request_payload_ids = [ @@ -710,7 +710,7 @@ class protocol: self._validation_rules = { 'preset_payload_length': False, 'requires_length': False, - 'firmware_type': False, + 'firmware_type': True, } @@ -720,10 +720,10 @@ class protocol: rules = self._validation_rules pid = self.getPayloadIdInt() - if rules['preset_payload_length']: + # if rules['preset_payload_length']: # Check payload is the required length - if rules['preset_payload_length'] != self.getPayloadLengthInt(): - raise Exception, 'Packet type %d preset length of %s does not match the actual payload length of %s' % (pid, rules['preset_payload_length'], self.getPayloadLengthIn + # if rules['preset_payload_length'] != self.getPayloadLengthInt(): + # raise Exception, 'Packet type %d preset length of %s does not match the actual payload length of %s' % (pid, rules['preset_payload_length'], self.getPayloadLengthI if rules['requires_length']: # Check a length was supplied and the payload matches |
||||||
| Tags | No tags attached. | ||||||
| Issue Type | Bug | ||||||
| Attached Files | |||||||
|
|
|||||||
Notes |
|
|
(0000150) sry_not4sale (administrator) 2009-01-13 21:55 |
Was escaping related, fixed |
|
(0000151) Fred (administrator) 2009-01-14 05:42 |
Tested fixed. |
| Mantis 1.1.7[^] Copyright © 2000 - 2008 Mantis Group |