Commit Graph

3 Commits

Author SHA1 Message Date
e086ab5ce1 feat: Implement Phase 3 Extended Features in C - Payment, Charging Status, Session Stop
- Add function declarations for all 6 Phase 3 message handlers
- Add message detection logic for:
  - PaymentServiceSelectionReq/Res: Payment method selection
  - ChargingStatusReq/Res: AC charging status monitoring
  - SessionStopReq/Res: Session termination control
- Implement comprehensive helper functions with:
  - Payment option analysis (Contract vs External)
  - Service list parsing and display
  - AC charging status with meter information
  - Session termination with ChargingSession enum handling
- Fix struct member access for iso1SessionStopReqType.ChargingSession
- Include emoji indicators for better UX and debugging
- Phase 3 C implementation complete, ready for VC2022/dotnet ports

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 07:34:47 +09:00
27c5824b57 feat: Complete Phase 2 Session & Service Management messages in C
Implemented comprehensive support for ISO 15118-2 Phase 2 messages:
- SessionSetupReq/Res with EVCCID and EVSEID parsing
- ServiceDiscoveryReq/Res with payment options and charge services
- AuthorizationReq/Res with ID and challenge handling
- ChargeParameterDiscoveryReq/Res with DC parameters and schedules

Added 8 detailed helper functions with emoji indicators for improved
readability and comprehensive parameter parsing including physical
values, status codes, and complex nested structures.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 07:24:52 +09:00
ChiKyun Kim
35af323ff0 fix: Resolve EXI encoding issues and enhance V2GDecoder functionality
- 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>
2025-09-10 13:01:53 +09:00