Coder Social home page Coder Social logo

Comments (7)

matth-x avatar matth-x commented on June 20, 2024

In the standard Smart Charging scenario, the OCPP server sends charging limits to the EVSE which MicroOcpp forwards to your application via the ocpp_setSmartChargingCurrentOutput callback function.

The EVSE can report back the actual charging limit (resulting from local load balancing restrictions, cable capacity, ect.) over MeterValues with the Measurand Current.Offered. To add a new measurand, use

void ocpp_addMeterValueInputFloat(InputFloat valueInput, const char *measurand, const char *unit, const char *location, const char *phase); //measurand, unit, location and phase can be NULL

For example:

float my_charging_limit() {
    return 16.f; // TODO replace with the actual charging limit of the EVSE
}

// register callback (somewhere in the setup function): 
ocpp_addMeterValueInputFloat(my_charging_limit, "Current.Offered", "A", NULL, NULL);

from microocpp.

p-r-m-n avatar p-r-m-n commented on June 20, 2024

from microocpp.

matth-x avatar matth-x commented on June 20, 2024

I see. It's possible to register custom Configurations as described here: #248 (comment) The approach works the same for accessing built-in Configs as for declaring new, custom Configs.

Having a Config for the maximum current, you can read its value in the firmware integration and make sure that your charger never exceeds that level manually.

from microocpp.

p-r-m-n avatar p-r-m-n commented on June 20, 2024

I see. It's possible to register custom Configurations as described here: #248 (comment) The approach works the same for accessing built-in Configs as for declaring new, custom Configs.

Having a Config for the maximum current, you can read its value in the firmware integration and make sure that your charger never exceeds that level manually.

thanks, i will try and post the results here.

from microocpp.

p-r-m-n avatar p-r-m-n commented on June 20, 2024

I tried to connect a esp to a EVSE but apparently i had it wrong, this library should connect to a ocpp server as the EVSE does, not the other way. There are any functions in this library to implement a ocpp server on the esp32?

from microocpp.

matth-x avatar matth-x commented on June 20, 2024

No, it's not supported at the moment. I did build a proof of concept for this once, but didn't go any further that direction.

from microocpp.

p-r-m-n avatar p-r-m-n commented on June 20, 2024

thanks for the support!

No, it's not supported at the moment. I did build a proof of concept for this once, but didn't go any further that direction.

from microocpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.