Mantis Bugtracker

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

- Relationships

-  Notes
(0000150)
sry_not4sale (administrator)
2009-01-13 21:55

Was escaping related, fixed
(0000151)
Fred (administrator)
2009-01-14 05:42

Tested fixed.

- Issue History
Date Modified Username Field Change
2008-11-28 00:50 Fred New Issue
2008-11-28 00:50 Fred Status new => assigned
2008-11-28 00:50 Fred Assigned To => sry_not4sale
2008-11-28 00:50 Fred Issue Type => Bug
2009-01-13 21:55 sry_not4sale Note Added: 0000150
2009-01-13 21:55 sry_not4sale Status assigned => resolved
2009-01-13 21:55 sry_not4sale Resolution open => fixed
2009-01-14 05:42 Fred Note Added: 0000151
2009-01-14 05:42 Fred Status resolved => closed
2009-02-15 08:24 sry_not4sale Status closed => resolved
2009-02-15 08:24 sry_not4sale Status resolved => closed
2009-02-15 08:24 sry_not4sale Fixed in Version => 0.1


Mantis 1.1.7[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker