SwitchEV / RISE-V2G

The only fully-featured reference implementation of the Vehicle-2-Grid communication interface ISO 15118
MIT License
220 stars 92 forks source link

Fix: ServiceDetailsToBeRequested to be a Integer instead of a short #59

Closed jessekerkhoven closed 2 years ago

jessekerkhoven commented 3 years ago

serviceIDtype is a xs:unsignedShort, that doesn't fit in a Java Short, it does in a Integer (but the range is to big)

If you currently have a VAS with serviceID > 32,767 you end up with a negative number in the XML/EXI data. Based on the ISO specification 0-60000 is reserved for the ISO standard, and >= 60001 can be used for implementation specific use, as a result you encounter this issue.