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

SOLVED: No messages after hass/status/p1 meter alive --- garbage data in log #20

Open
elngejw opened this issue Nov 7, 2022 · 4 comments

Comments

@elngejw
Copy link

elngejw commented Nov 7, 2022

Hi all,

After installing and succesfull hass/status/p1 meter alive it keeps all quiet....no measurements are sent to mqtt.
Anybody knows where the problem might be? Is there a way to see any logging?

Many thanks for your help!!

Best regards,

Geert-Jan

@elngejw
Copy link
Author

elngejw commented Nov 7, 2022

To elaborate:

The meter is ISKRA AM550...I'm using the schematic below with the pull-up jumper installed.
This was working fine with other code from Tasmota (see link) ...which delivers the complete telegram message in stead of a message per measurement.

p1-mini-schema

@elngejw
Copy link
Author

elngejw commented Nov 7, 2022

And I managed to get the logging:

rll�r�$��n � l� c|������r�b� b��nn�lnn�b b�p�$b�lrlp�n0� � l �� b n�n� �� b��nn'l��l����nn $���nr���n rr��p�n�� r���b �� b n�n � b��nn' �l����nn $���nr���n r�l��r��n r�l��� l�r� l���n�`�

Swapping UART0 RX to inverted
Serial port is ready to recieve.
read_eeprom()read_eeprom()read_eeprom()read_eeprom()read_eeprom()*wm:[2] Added Parameter: host
*wm:[2] Added Parameter: port
*wm:[2] Added Parameter: user
*wm:[2] Added Parameter: pass
*wm:[1] AutoConnect
*wm:[2] Connecting as wifi client...
*wm:[2] setSTAConfig static ip not set, skipping
*wm:[1] Connecting to SAVED AP: xxxxxxxxxx
*wm:[1] connectTimeout not set, ESP waitForConnectResult...
*wm:[2] Connection result: WL_CONNECTED
*wm:[1] AutoConnect: SUCCESS
*wm:[2] Connected in 3879 ms
*wm:[1] STA IP Address: 192.168.1.110
Connected to WIFI...
Arduino OTA activated.
Arduino OTA finished
Starting MDNS responder service
MQTT connecting to: 192.168.1.100:1883
MQTT connection attempt 1 / 10 ...
MQTT connected!
MQTT root topic: sensors/power/mqtt-p1

f���&&f�fͥM�=gifL�34d4��&�f�fͥM�=gifLff�f���&ffsfͥM�=gifL�f�f����fMiS�gifL�f�f�����fMiS�gifL�f�f�����fMiS�gif̦f�f����fs�&fMI�M�=gif̙f�f����f��f����M�=gif̦f�f����f���fMI�M�=giflff�f����f���fMI�M�=gif̙34d4���f���fMI�M�=gif�ff�f����f���fMI�M�=ofdf��h[VZe�3Yee���&����:J��>F6F�^>Z��>J>�:F>F>^66::>�:�::>"�Z��>J>��&F:F:^�2>d>22.2>2>2�22262�2&2��622262:���:J>�:F�F:^>>:6��F>"VR�/Z��:J>�:F�F�^>>:��2F66VR�^Z�֝J>�6F�F:�>>:.�.F�6&VRQ^Z��:J>��F�F6�>>2>�F22�VR�^���>J���&F�.F>^>>>6Z��:J��:F"�>�>>F..VR�Z��:J>�6F"F|^>>�>>>V)�Z��>J>��&F�F6:^>>>>Z��>J>���F"��^>>>>2Z��:J>���F�"F>^:Z^>J>���F"F:�Z^�:>T6:>&.>6�Z^>>>>>>>2:>V2Z�֝J>�26F26�>^>>>>6Z��:J>�6F26F�^>>>>tZ��:J��"6F26F>^>>>>2���:J>�26F2&F>^>>>>:Z��:J>�6F2&F>^>>>>6Z��:J>�"6F2&F>^>��>:Z��>J���&F:2F>^Z��:�>�26�"F>�622F6V�Z��:J>��6�"F>^62�F"V�Z��:�>�"6�"F��626F.V�Z��:J>�2:��f�����fMiS֝J>��F"F>^>>�V�Z��:J>�":F�F>^>�>V�Z��:J|�6:F"F>^>>F.>6VR�Z��:J>�.:F"F>^>>F>..VR�Z��:J>�&:F"F>^>>F>>*VR�Z��:J>�66F"F>^>>F>>>VR�Z��:J>�.6F"F>^>>F>>>VR�Z��:J>�&6F"F>^>>F>>>VR�Z��o.^e2y=h[VZe�3Yeeƕ��

@elngejw
Copy link
Author

elngejw commented Nov 10, 2022

SOLVED:

I found out that on my PCB the signal was already inverted. Therefore I canceled out the bold marked line below in
esp8266_p1meter.ino

// Invert the RX serialport by setting a register value, this way the TX might continue normally allowing the serial monitor to read println's
**//USC0(UART0) = USC0(UART0) | BIT(UCRXI);**

@elngejw elngejw changed the title No messages after hass/status/p1 meter alive SOLVED: No messages after hass/status/p1 meter alive --- garbage data in log Nov 10, 2022
@daniel-jong
Copy link
Owner

daniel-jong commented Nov 12, 2022

Hi!
Sorry for leaving you hanging there for a bit. But great to hear that you have solved your issue.
Like you have said I think you pcb has a inverter set up at its Q1 component. I’m leaving this issue open for a bit and see if it might help some people.

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

No branches or pull requests

2 participants