Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix - Authorization is working again (DIN70121) #5

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

SebaLukas
Copy link
Collaborator

The correct function is now called for authorization in the DIN70121 state machine.

Copy link

@corneliusclaussen corneliusclaussen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still getting stuck in contract auth req loop:

023-04-06 07:33:47.951222 [INFO] token_validator :: Got validation request for token 'DEADBEEF'...
2023-04-06 07:33:48.216085 [INFO] token_validator :: Returning validation result for token 'DEADBEEF': { authorization_status: 'Accepted', reason: 'Token seems valid' }
2023-04-06 07:33:48.242545 [INFO] auth:Auth :: Providing authorization to connector#1
2023-04-06 07:33:48.440497 [INFO] powersupply_sof :: T_amb 23 T_hs 9 T_inv 8 cntdwn 0 insulation 475
2023-04-06 07:33:48.631756 [INFO] evse_manager:Ev :: EVSE IEC Set PWM On (5.000000074505806%)
2023-04-06 07:33:48.725407 [INFO] powersupply_sof :: Vbat1 50.9 Ibat1 0 Pbat1 0 SOC_bat1 10 SOH_bat1 100 cycles_bat1 0
2023-04-06 07:33:48.790917 [INFO] auth:Auth :: Result for token: DEADBEEF: ACCEPTED
2023-04-06 07:33:49.647208 [INFO] evse_manager:Ev :: EVSE ISO Change HLC Limits: 10000W/25A, target_voltage 0, hack_bpt false
2023-04-06 07:33:49.797477 [INFO] evse_manager:Ev :: EVSE IEC EIM Authorization received
2023-04-06 07:33:49.797985 [INFO] evse_manager:Ev :: EVSE IEC Transaction Started (527.213 kWh)
2023-04-06 07:33:49.799150 [INFO] evse_manager:Ev :: EVSE IEC DC mode. We are in 5percent mode so we can continue without further action.
2023-04-06 07:33:49.850393 [INFO] evse_manager:Ev :: EVSE IEC Charger state: Wait for Auth->PrepareCharging
2023-04-06 07:33:49.988852 [INFO] evse_manager:Ev :: EVSE IEC Set PWM On (5.000000074505806%)
2023-04-06 07:33:51.009191 [INFO] powersupply_sof :: T_amb 23 T_hs 9 T_inv 8 cntdwn 0 insulation 475
2023-04-06 07:33:51.294841 [INFO] powersupply_sof :: Vbat1 50.9 Ibat1 0 Pbat1 0 SOC_bat1 10 SOH_bat1 100 cycles_bat1 0
2023-04-06 07:33:52.022930 [INFO] evse_manager:Ev :: EVSE ISO SLAC MATCHING
2023-04-06 07:33:52.998077 [INFO] evse_manager:Ev :: EVSE ISO SLAC MATCHED
2023-04-06 07:33:53.682063 [INFO] powersupply_sof :: T_amb 23 T_hs 9 T_inv 8 cntdwn 0 insulation 475
2023-04-06 07:33:54.132969 [INFO] powersupply_sof :: Vbat1 50.9 Ibat1 0 Pbat1 0 SOC_bat1 10 SOH_bat1 100 cycles_bat1 0
2023-04-06 07:33:54.854870 [INFO] evse_manager:Ev :: CAR ISO V2G SupportedAppProtocolReq
2023-04-06 07:33:54.956527 [INFO] evse_manager:Ev :: EVSE ISO V2G SupportedAppProtocolRes
2023-04-06 07:33:55.529220 [INFO] evse_manager:Ev :: CAR ISO V2G SessionSetupReq
2023-04-06 07:33:55.601239 [INFO] powersupply_sof :: Set fake CAN Bat: 56V/0A, 0%, target 0V/0A.
2023-04-06 07:33:55.797294 [INFO] evse_manager:Ev :: EVSE ISO V2G SessionSetupRes
2023-04-06 07:33:56.061757 [INFO] evse_manager:Ev :: CAR ISO V2G ServiceDiscoveryReq
2023-04-06 07:33:56.336710 [INFO] evse_manager:Ev :: EVSE ISO V2G ServiceDiscoveryRes
2023-04-06 07:33:56.637493 [INFO] powersupply_sof :: T_amb 23 T_hs 9 T_inv 8 cntdwn 0 insulation 475
2023-04-06 07:33:56.647671 [INFO] evse_manager:Ev :: CAR ISO V2G ServicePaymentSelectionReq
2023-04-06 07:33:56.831130 [INFO] evse_manager:Ev :: EVSE ISO V2G ServicePaymentSelectionRes
2023-04-06 07:33:56.972345 [INFO] powersupply_sof :: Vbat1 50.9 Ibat1 0 Pbat1 0 SOC_bat1 10 SOH_bat1 100 cycles_bat1 0
2023-04-06 07:33:57.065837 [INFO] evse_manager:Ev :: CAR ISO V2G ContractAuthenticationReq
2023-04-06 07:33:57.383335 [INFO] evse_manager:Ev :: EVSE ISO V2G ContractAuthenticationRes
2023-04-06 07:33:58.149190 [INFO] evse_manager:Ev :: CAR ISO V2G ContractAuthenticationReq
2023-04-06 07:33:58.352732 [INFO] evse_manager:Ev :: EVSE ISO V2G ContractAuthenticationRes
2023-04-06 07:33:59.139818 [INFO] evse_manager:Ev :: CAR ISO V2G ContractAuthenticationReq
2023-04-06 07:33:59.280401 [INFO] powersupply_sof :: T_amb 23 T_hs 9 T_inv 8 cntdwn 0 insulation

475
2023-04-06 07:33:59.314494 [INFO] evse_manager:Ev :: EVSE ISO V2G ContractAuthenticationRes

Copy link

@corneliusclaussen corneliusclaussen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auth works now, but din spec is still broken in Josev

…state machine.

Signed-off-by: Sebastian Lukas <sebastian.lukas@pionix.de>
@SebaLukas SebaLukas force-pushed the sl-fix-din-authorization branch from d0b1239 to e2542b6 Compare April 6, 2023 07:52
@SebaLukas SebaLukas merged commit d0d5e73 into everest Apr 6, 2023
@SebaLukas SebaLukas deleted the sl-fix-din-authorization branch April 6, 2023 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants