2121import net .heberling .ismart .asn1 .v2_1 .entity .OTA_RVMVehicleStatusResp25857 ;
2222import net .heberling .ismart .asn1 .v2_1 .entity .RvcReqParam ;
2323import net .heberling .ismart .asn1 .v3_0 .Message ;
24- import net .heberling .ismart .asn1 .v3_0 .entity .OTA_ChrgCtrlReq ;
25- import net .heberling .ismart .asn1 .v3_0 .entity .OTA_ChrgCtrlStsResp ;
26- import net .heberling .ismart .asn1 .v3_0 .entity .OTA_ChrgMangDataResp ;
24+ import net .heberling .ismart .asn1 .v3_0 .entity .OTAChrgCtrlReq ;
25+ import net .heberling .ismart .asn1 .v3_0 .entity .OTAChrgCtrlStsResp ;
26+ import net .heberling .ismart .asn1 .v3_0 .entity .OTAChrgMangDataResp ;
2727import org .bn .coders .IASN1PreparedElement ;
2828import org .eclipse .paho .client .mqttv3 .IMqttClient ;
2929import org .eclipse .paho .client .mqttv3 .MqttException ;
@@ -78,7 +78,7 @@ void handleVehicle() throws MqttException, IOException {
7878 OTA_RVMVehicleStatusResp25857 vehicleStatus =
7979 updateVehicleStatus (uid , token , vinInfo .getVin ());
8080
81- OTA_ChrgMangDataResp chargeStatus = updateChargeStatus (uid , token , vinInfo .getVin ());
81+ OTAChrgMangDataResp chargeStatus = updateChargeStatus (uid , token , vinInfo .getVin ());
8282 final String abrpApiKey = saicMqttGateway .getAbrpApiKey ();
8383 final String abrpUserToken = saicMqttGateway .getAbrpUserToken (vinInfo .getVin ());
8484 if (abrpApiKey != null && abrpUserToken != null && vehicleStatus != null ) {
@@ -194,7 +194,7 @@ private OTA_RVMVehicleStatusResp25857 updateVehicleStatus(String uid, String tok
194194 return vehicleStatusResponseMessage .getApplicationData ();
195195 }
196196
197- private OTA_ChrgMangDataResp updateChargeStatus (String uid , String token , String vin )
197+ private OTAChrgMangDataResp updateChargeStatus (String uid , String token , String vin )
198198 throws IOException , MqttException {
199199 net .heberling .ismart .asn1 .v3_0 .MessageCoder <IASN1PreparedElement >
200200 chargingStatusRequestMessageEncoder =
@@ -214,14 +214,14 @@ private OTA_ChrgMangDataResp updateChargeStatus(String uid, String token, String
214214 String chargingStatusResponse =
215215 Client .sendRequest (saicUri .resolve ("/TAP.Web/ota.mpv30" ), chargingStatusRequestMessage );
216216
217- net .heberling .ismart .asn1 .v3_0 .Message <OTA_ChrgMangDataResp > chargingStatusResponseMessage =
218- new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTA_ChrgMangDataResp .class )
217+ net .heberling .ismart .asn1 .v3_0 .Message <OTAChrgMangDataResp > chargingStatusResponseMessage =
218+ new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTAChrgMangDataResp .class )
219219 .decodeResponse (chargingStatusResponse );
220220
221221 LOGGER .debug (
222222 SaicMqttGateway .toJSON (
223223 SaicMqttGateway .anonymized (
224- new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTA_ChrgMangDataResp .class ),
224+ new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTAChrgMangDataResp .class ),
225225 chargingStatusResponseMessage )));
226226
227227 // we get an eventId back...
@@ -256,13 +256,13 @@ private OTA_ChrgMangDataResp updateChargeStatus(String uid, String token, String
256256 Client .sendRequest (saicUri .resolve ("/TAP.Web/ota.mpv30" ), chargingStatusRequestMessage );
257257
258258 chargingStatusResponseMessage =
259- new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTA_ChrgMangDataResp .class )
259+ new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTAChrgMangDataResp .class )
260260 .decodeResponse (chargingStatusResponse );
261261
262262 LOGGER .debug (
263263 SaicMqttGateway .toJSON (
264264 SaicMqttGateway .anonymized (
265- new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTA_ChrgMangDataResp .class ),
265+ new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTAChrgMangDataResp .class ),
266266 chargingStatusResponseMessage )));
267267 }
268268 vehicleState .handleChargeStatusMessage (chargingStatusResponseMessage );
@@ -391,29 +391,29 @@ private void sendCharging(boolean state)
391391 TimeoutException ,
392392 MqttException ,
393393 IOException {
394- net .heberling .ismart .asn1 .v3_0 .MessageCoder <OTA_ChrgCtrlReq > otaRvcReqMessageCoder =
395- new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTA_ChrgCtrlReq .class );
394+ net .heberling .ismart .asn1 .v3_0 .MessageCoder <OTAChrgCtrlReq > otaRvcReqMessageCoder =
395+ new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTAChrgCtrlReq .class );
396396
397397 // we send a command end expect the car to wake up
398398 vehicleState .notifyCarActivityTime (OffsetDateTime .now (), false );
399399
400- OTA_ChrgCtrlReq req = new OTA_ChrgCtrlReq ();
400+ OTAChrgCtrlReq req = new OTAChrgCtrlReq ();
401401 req .setTboxV2XReq (0 );
402402 req .setTboxEleccLckCtrlReq (0 );
403403 req .setChrgCtrlReq (state ? 1 : 2 );
404404
405- Message <OTA_ChrgCtrlReq > sendCommandRequest =
405+ Message <OTAChrgCtrlReq > sendCommandRequest =
406406 otaRvcReqMessageCoder .initializeMessage (uid , token , vinInfo .getVin (), "516" , 768 , 7 , req );
407407
408408 String sendCommandRequestMessage = otaRvcReqMessageCoder .encodeRequest (sendCommandRequest );
409409
410410 String sendCommandResponseMessage =
411411 Client .sendRequest (saicUri .resolve ("/TAP.Web/ota.mpv30" ), sendCommandRequestMessage );
412412
413- final net .heberling .ismart .asn1 .v3_0 .MessageCoder <OTA_ChrgCtrlStsResp >
413+ final net .heberling .ismart .asn1 .v3_0 .MessageCoder <OTAChrgCtrlStsResp >
414414 otaRvcStatus25857MessageCoder =
415- new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTA_ChrgCtrlStsResp .class );
416- net .heberling .ismart .asn1 .v3_0 .Message <OTA_ChrgCtrlStsResp > sendCommandReqestMessage =
415+ new net .heberling .ismart .asn1 .v3_0 .MessageCoder <>(OTAChrgCtrlStsResp .class );
416+ net .heberling .ismart .asn1 .v3_0 .Message <OTAChrgCtrlStsResp > sendCommandReqestMessage =
417417 otaRvcStatus25857MessageCoder .decodeResponse (sendCommandResponseMessage );
418418
419419 // ... use that to request the data again, until we have it
0 commit comments