- Fix critical EXI encoding error -109 (EXI_ERROR_UNKOWN_EVENT) by adding proper structure initialization * Added init_iso1BodyType() call before setting message type flags in XML parsing * Prevents garbage values in unused message type flags that caused wrong grammar paths - Rename enhanced_exi_viewer to V2GDecoder for consistency * Updated build.bat to build V2GDecoder instead of enhanced_exi_viewer * Maintains all existing functionality with improved reliability - Add comprehensive structure debugging capabilities * Created structure dump functions to output complete document state * Added struct_exi.txt and struct_xml.txt for comparing parsed vs original structures - Enhance output formatting for encoding operations * Clean hex-only output for encoding mode (similar to XML decode mode) * Removed debug clutter for production use while preserving debugging code - Add test infrastructure with minimal_test.xml for focused testing * Validates CurrentDemandReq message encoding with minimal required fields - Improve encoder debugging with position tracking in iso1EXIDatatypesEncoder.c * Added debug points to track exact failure locations during encoding 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
1.0 KiB
XML
29 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ns1:V2G_Message xmlns:ns1="urn:iso:15118:2:2013:MsgDef"
|
|
xmlns:ns2="urn:iso:15118:2:2013:MsgHeader"
|
|
xmlns:ns3="urn:iso:15118:2:2013:MsgBody"
|
|
xmlns:ns4="urn:iso:15118:2:2013:MsgDataTypes">
|
|
<ns1:Header>
|
|
<ns2:SessionID>4142423030303831</ns2:SessionID>
|
|
</ns1:Header>
|
|
<ns1:Body>
|
|
<ns3:CurrentDemandReq>
|
|
<ns3:DC_EVStatus>
|
|
<ns4:EVReady>true</ns4:EVReady>
|
|
<ns4:EVErrorCode>0</ns4:EVErrorCode>
|
|
<ns4:EVRESSSOC>100</ns4:EVRESSSOC>
|
|
</ns3:DC_EVStatus>
|
|
<ns3:EVTargetCurrent>
|
|
<ns4:Multiplier>0</ns4:Multiplier>
|
|
<ns4:Unit>3</ns4:Unit>
|
|
<ns4:Value>5</ns4:Value>
|
|
</ns3:EVTargetCurrent>
|
|
<ns3:ChargingComplete>true</ns3:ChargingComplete>
|
|
<ns3:EVTargetVoltage>
|
|
<ns4:Multiplier>0</ns4:Multiplier>
|
|
<ns4:Unit>4</ns4:Unit>
|
|
<ns4:Value>460</ns4:Value>
|
|
</ns3:EVTargetVoltage>
|
|
</ns3:CurrentDemandReq>
|
|
</ns1:Body>
|
|
</ns1:V2G_Message> |