Closed githubhash closed 3 years ago
Where you able to get data with those cables using other programme? The P1 interface uses a funny pin assignment, and needs a resistor between TX and RTX, see link in the README. It will only start sending data when it detects a connection.
What DSMR does your meter provide. You might need to set the appropriate config.json parameters: dsmr22
or timeout
, see README.
The ISKRA AM550 is an SMR 5.0 meter. Do you have an suggestion for testing with other programs? Currently I'm investigating the pin assignment, wondering where the Data GND must be connected to at this cable https://www.tinytronics.nl/shop/nl/communicatie/serieel/ft232-3.3-5v-ttl-usb-serial-port-adapter-met-kabel
I connected the: pin1 to 5V (red cable on USB) pin2 to RTS (yellow cable on USB) pin3 to ??? pin4 not connected pin5 to RX (white cable on USB) pin6 to GND (black cable on USB)
Update: when I connect pin3 to the Ground on the GPIO I get these messages: [03/02/2021, 22:53:24] [P1] warning: heartbeat 875, drift 24379 [03/02/2021, 22:53:24] [P1] warning: heartbeat 876, drift 23380 [03/02/2021, 22:53:24] [P1] warning: heartbeat 877, drift 22382 etc. etc.
The P1 USB cable is a serial port. You just plug it into one of the Pi’s USB ports. The other end goes into the meter. It doesn’t use any GPIO pins. See the link in the README. There’s also an example to use cu
to test the connection to the meter.
Because the USB cable has 1 pin for ground, I decided to connect pin6 on the RJ12 to the ground cable on the USB side and connected the pin3 on the RJ12 (Data GND) to the GND on the GPIO.
With the FT_PROG I inverted the RXD signal, no result. I can connect using cu in the terminal, the message says "Connected.", but no telegram is received.
If you don't get any telegram in cu
, there's probably an issue with the cable or with the way you wired it. I'm sorry, but I cannot help you with that.
Thanks for your directions, I contact the supplier of the cable to troubleshoot.
It was a problem with the cable. I ordered a new one and it works without issues. Thanks again for your help!
I have the exact same problem:
[P1] connected to /dev/ttyUSB0 [P1] warning: no data received in 5s [P1] disconnected from /dev/ttyUSB0
I have setup Domoticz with the same cable and there everything is updated correctly, but with this plugin to expose it to homekit it is not working for some reason
Hello,
This is the situation:
What's going wrong and how can I fix it? Any help is appreciated!