diff --git a/conUDS/assets/nodes.yml b/conUDS/assets/nodes.yml index 2d03625..41e6309 100644 --- a/conUDS/assets/nodes.yml +++ b/conUDS/assets/nodes.yml @@ -6,3 +6,24 @@ nodes: # just added this for testing, this isn't actually true yet request_id: 0x111 response_id: 0x112 + bmsw0: + request_id: 0x600 + response_id: 0x640 + bmsw1: + request_id: 0x601 + response_id: 0x641 + bmsw2: + request_id: 0x602 + response_id: 0x642 + bmsw3: + request_id: 0x603 + response_id: 0x643 + bmsw4: + request_id: 0x604 + response_id: 0x644 + bmsw5: + request_id: 0x605 + response_id: 0x645 + bmsb: + request_id: 0x610 + response_id: 0x650 diff --git a/conUDS/src/main.rs b/conUDS/src/main.rs index a8943e1..3dab222 100644 --- a/conUDS/src/main.rs +++ b/conUDS/src/main.rs @@ -14,6 +14,7 @@ use log::{debug, error, info}; use simplelog::{CombinedLogger, TermLogger, WriteLogger}; use tokio::sync::mpsc; +use conuds::SupportedResetTypes; use conuds::arguments::{ArgSubCommands, Arguments}; use conuds::modules::canio::CANIO; use conuds::{CanioCmd, PrdCmd}; @@ -110,6 +111,7 @@ async fn main() -> Result<()> { "Downloading binary at '{:#?}' to node `{}`", dl.binary, args.node ); + uds_client.ecu_reset(SupportedResetTypes::Hard).await; uds_client.start_persistent_tp().await?; info!("Waiting for the user to hit enter before continuing with download");