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

Is there an interface in dreamview plus that can display the vehicle SOC on the page? #15503

Open
leizi111 opened this issue Aug 15, 2024 · 4 comments
Labels
Module: Simulation & Dreamview Indicates simulation module related issues

Comments

@leizi111
Copy link

I want to display the vehicle soc value on the dreamview plus page, is there an interface in dreamview plus that can display the vehicle SOC on the page?

@daohu527
Copy link
Contributor

do you mean Vehicle Security Operations Center? Dreamview already has an event monitor to display multi-level messages about the module, like warning, error, delay so on.

we're adding more functional security monitor, and maybe you can explain your requirements in detail, or give a design document

@daohu527 daohu527 added the Module: Simulation & Dreamview Indicates simulation module related issues label Aug 15, 2024
@leizi111
Copy link
Author

I mean soc(State-of-Charge) value of vehicle battery, it can be read on the chassis via canbus, I want to display it on dreamview plus page, is there an interface I can use? Looking forward to your reply.

do you mean Vehicle Security Operations Center? Dreamview already has an event monitor to display multi-level messages about the module, like warning, error, delay so on.

we're adding more functional security monitor, and maybe you can explain your requirements in detail, or give a design document

@daohu527
Copy link
Contributor

autoDrivingCar

Vehicle related information is in autoDrivingCar, which is a Object message, the proto type you can find in

how to get the battery_percentage

  1. Here is an example about how to get speed.
    return (
    <CustomScroll className={classes['panel-dash-board']}>
    <DriveMode mode={toDrivingMode(dashBoardState?.autoDrivingCar?.disengageType)} />
    <SignalAndGear
    color={dashBoardState?.trafficSignal?.currentSignal}
    gearPosition={dashBoardState?.autoDrivingCar?.gearLocation}
    />

so you can add below method to get battery_percentage,

            <SignalAndGear
                color={dashBoardState?.trafficSignal?.currentSignal}
                gearPosition={dashBoardState?.autoDrivingCar?.gearLocation}
                batteryPercentage={dashBoardState?.autoDrivingCar?.batteryPercentage}  #-------> add
            />
  1. Next, display info in below code
    function SignalAndGear(props: SignalAndGearProps) {
    const { classes } = useStyle();
    return (
    <div className={classes['dash-board-signal-gear']}>
    <Signal signal={props?.color as SignalEnum} />
    <Gear gearPosition={props?.gearPosition} />
    </div>
    );
    }
    <div className={classes['dash-board-signal-gear']}>
        <Signal signal={props?.color as SignalEnum} />
        <Gear gearPosition={props?.gearPosition} />
        <Battery percentage={props?.batteryPercentage} />  #-------> add
    </div>

@leizi111
Copy link
Author

Thanks for your reply! I will try it in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: Simulation & Dreamview Indicates simulation module related issues
Projects
None yet
Development

No branches or pull requests

2 participants