Coder Social home page Coder Social logo

Comments (3)

matth-x avatar matth-x commented on September 23, 2024

Hi @AbdullahJalloul,

Thank you for the report. Does the charger send meter values within the StopTransaciton, i.e. is something set up in the config keys StopTxnSampledData or StopTxnAlignedData? My first guess is that the payload JSON overflows, but this is only plausible if the transactionData has a regression bug.

from microocpp.

AbdullahJalloul avatar AbdullahJalloul commented on September 23, 2024

Thank you for your quick response. Yes, I am indeed using StopTxnSampledData and StopTxnAlignedData configurations. Here's how they are set up:

declareConfiguration<const char*>("MeterValuesSampledData", "Power.Active.Import,Energy.Active.Import.Register,Voltage,Current.Import");
declareConfiguration<const char*>("StopTxnSampledData", "Power.Active.Import,Energy.Active.Import.Register,Voltage,Current.Import");
declareConfiguration<const char*>("MeterValuesAlignedData", "Power.Active.Import,Energy.Active.Import.Register,Voltage,Current.Import");
declareConfiguration<const char*>("StopTxnAlignedData", "Power.Active.Import,Energy.Active.Import.Register,Voltage,Current.Import");

As you can see, I am sampling and aligning multiple data types like Power, Energy, Voltage, and Current at the end of transactions. Your suggestion about the possibility of JSON payload overflow makes sense, considering the amount of data involved. Could you please advise on how to confirm if this is the case and any potential workarounds or adjustments I might consider to mitigate this issue?

Thank you once again for your support and guidance.

Best regards,

from microocpp.

matth-x avatar matth-x commented on September 23, 2024

Thanks for the information. I tried to reproduce this using the Simulator on Linux, but without luck. I will troubleshoot it on a microcontroller platform too.

Another possible scenario is that the device is running low on heap memory and then the JSON serialization fails. Do you monitor the heap usage and could there be a connection with the blank message? In any case, the library is lacking a meaningful error message if the allocation fails here which needs to be improved in future.

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.