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

Rfid and timer #167

Closed
wants to merge 40 commits into from
Closed

Rfid and timer #167

wants to merge 40 commits into from

Conversation

chris1howell
Copy link
Member

Merge Request for RFID into Master

Oliver Norin and others added 30 commits February 11, 2021 15:21
Voltage is used by divert mode, as well as sent along to the OpenEVSE
module for power calculations.

Setting this to zero could result in a lot of issues. The divert code
would see divide by zero happen, and the energy montoring code on the
OpenEVSE module would result in the recorded energy usage being
incorrect.

While this shouldn't happen reguarly, I found myself in this situation
by sending a null/zero-length message to the relevant topic that the
ESP32 was listening on. Because there is no error checking in the float
parsing code, a null value parsed to zero, which resulted in the voltage
value being set to zero.

An alternative here would be to reset the voltage to `DEFAULT_VOLTAGE`
if a zero or invalid value was received. As written, this will simply do
nothing and ignore the invalid/zero value.
A value between 60 and 300 volts, while being a generous range, should
prevent issues where the value read from MQTT is read as a `0` or
erroneously specified in millivolts.
Voltage is used by divert mode, as well as sent along to the OpenEVSE
module for power calculations.

Setting this to zero could result in a lot of issues. The divert code
would see divide by zero happen, and the energy montoring code on the
OpenEVSE module would result in the recorded energy usage being
incorrect.

While this shouldn't happen reguarly, I found myself in this situation
by sending a null/zero-length message to the relevant topic that the
ESP32 was listening on. Because there is no error checking in the float
parsing code, a null value parsed to zero, which resulted in the voltage
value being set to zero.

An alternative here would be to reset the voltage to `DEFAULT_VOLTAGE`
if a zero or invalid value was received. As written, this will simply do
nothing and ignore the invalid/zero value.
A value between 60 and 300 volts, while being a generous range, should
prevent issues where the value read from MQTT is read as a `0` or
erroneously specified in millivolts.
Oliver Norin added 2 commits March 12, 2021 08:57
Presenting a tag will enter an authenticated state that can be cancelled by presenting the same tag again
@Olverine
Copy link
Contributor

We are currently developing this feature for firmware version 3.3.2 and applying the changes we make to this PR every once in a while. It is however very difficult to test the code and confirm that it is working for the reasons stated in #169.

@jeremypoulter
Copy link
Collaborator

Thanks, really appreciate it, maybe we can get it merged in to the v3 branch as a first step, but may very well have to break comparability when merged to v4

@TonD83
Copy link

TonD83 commented Oct 19, 2021

May I ask what's the status of this? Would really appreciate this functionality, but it seems rather quiet around here.

@chris1howell
Copy link
Member Author

@TonD83 The focus of the development team has been on OCPP functionality. RFID development is basically complete, unfortunately it was done on older 3.x firmware, there is some work integrating it with the current 4.x code. We will likely get back to this soon.

@jeremypoulter
Copy link
Collaborator

@Olverine v4 is getting more mature now, are you interested in continuing with this PR?

@chris1howell
Copy link
Member Author

@jeremypoulter I just spoke with @matth-x, he is going to work on this PR and integrate RFID with standalone functionality and OCPP.

@jeremypoulter
Copy link
Collaborator

Superseded by #325

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.

7 participants