Page 1 of 1
No devices after installing P1 cable
Posted: Wednesday 01 November 2017 19:52
by Marcjeok
Hi all,
I'm new to this forum and started to use Domoticz just shortly. I really think it's working great! However, I'm afraid I need some help with an issue. I'v installed a P1 cable from my smart meter to my Raspberry Pi (USB). Configured the hardware, but I get no results in my devices.
But first things first, I have this:
- Aeon Labs Aeotec Gen 5 Z-Wave USB Interface on batteries
- Smart meter: Landy+Gyr E350 - ZMF110 (Stedin)
This is my Hardware configuration:

- Hardware config.PNG (160.74 KiB) Viewed 3123 times
--> I'v tried different serial ports and the other baudrate, but unfortunately no result. The cable in a different USB-port also gives the same result.
My Devices looks like this (clicked on the butten all devices):

- Devices config.PNG (158.2 KiB) Viewed 3123 times
In my settings the 'Accept new Hardware Devices' is checked.
I have checked a lot of forum posts on the Domoticz site and other sites. I learned that I can check the connection with this command:
Code: Select all
cu -l /dev/ttyUSB0 -s 115200 --parity=none
When I do that, I get the following result:

- Output CU.PNG (89.7 KiB) Viewed 3123 times
This data keeps running and doesn't stop. I can only stop it by closing my SSH connection (does somebody know a better way?). I have contacted the store (Robbshop) where I bought the cable for assistance. The said that they get a lot of questions about this, but they advised me to describe the problem on this forum. I really hope that you can help me out. Please keep in mind that I've never worked with a Raspberry (or Unix/Linux) before

.
Thanks in advance!
Re: No devices after installing P1 cable
Posted: Wednesday 01 November 2017 20:55
by Marcjeok
Yes, the data keeps running. I was pretty sure that I was looking to the correct device (until now

). I'm not sure if I understand you correctly, but when I look at the options in Domoticz, I can select the following Serial ports:

- Ports.png (137.04 KiB) Viewed 3107 times
When I run the command 'ls /dev/ttyUSB*', I get the following output:
/dev/ttyUSB0
When I try 'cu -l /dev/ttyUSB1 -s 115200 --parity=none', I get the following output:
cu: open (/dev/ttyUSB1): No such file or directory
cu: /dev/ttyUSB1: Line in use
Re: No devices after installing P1 cable
Posted: Wednesday 01 November 2017 22:28
by DomoJev
I think your z-wave stick uses USB0. For testing purposes, what happens if you pull the z-wave stick from the system and restart?
Re: No devices after installing P1 cable
Posted: Thursday 02 November 2017 7:05
by Jan Jansen
I have a similar meter in my house and also had problems with it. This meter sends its data every second. I think I recognize the pattern in the displayed output.
I use the UART connection. The schematics I found on the internet did not work. Eventually I created a schematic (after experiments) that works. With a solder iron a few resistors and a BS 170 I solved the problem. If desired, I can post the schematic this evening.
Re: No devices after installing P1 cable
Posted: Thursday 02 November 2017 18:37
by Marcjeok
DomoJev wrote: ↑Wednesday 01 November 2017 22:28
I think your z-wave stick uses USB0. For testing purposes, what happens if you pull the z-wave stick from the system and restart?
The setup button next to the Z-wave sticks turns red. When I run the command 'ls /dev/ttyUSB*', I get the following output:
ls: cannot access /dev/ttyUSB: No such file or directory
But when I try 'cu -l /dev/ttyUSB0 -s 115200 --parity=none', I get same data again as mentioned in my first post.

Re: No devices after installing P1 cable
Posted: Thursday 02 November 2017 18:50
by Marcjeok
gordonb3 wrote: ↑Wednesday 01 November 2017 23:18
I had a similar thought about the zwave device. I'd say the P1 cable is not recognized by the kernel. What happens if you attach the cable to a Windows machine?
Now disconnected both the devices. When I try 'cu -l /dev/ttyUSB0 -s 115200 --parity=none', I get the following output:
cu: open (/dev/ttyUSB0): No such file or directory
cu: /dev/ttyUSB0: Line in use
My conclusion would be that USB0 is the right USB port, agreed?
When I connect the cable to a Windows 10 laptop, Windows give the sound for plugging a USB device. In the Device manager I can see the connect (USB Serial Port (COM4). Ports (COM & LPT). Standard Port settings are (configured by Windows):
Bits per second: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
Re: No devices after installing P1 cable
Posted: Thursday 02 November 2017 18:54
by Marcjeok
Jan Jansen wrote: ↑Thursday 02 November 2017 7:05
I have a similar meter in my house and also had problems with it. This meter sends its data every second. I think I recognize the pattern in the displayed output.
I use the UART connection. The schematics I found on the internet did not work. Eventually I created a schematic (after experiments) that works. With a solder iron a few resistors and a BS 170 I solved the problem. If desired, I can post the schematic this evening.
Yes please. If it doesn't help me, It might help other people.
Re: No devices after installing P1 cable
Posted: Thursday 02 November 2017 19:18
by Marcjeok
I disconnected the cable and connected it again. Output 'dmesg':
[ 2720.104587] usb 1-1.5: USB disconnect, device number 6
[ 2720.105017] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 2720.105091] ftdi_sio 1-1.5:1.0: device disconnected
[ 2729.304621] usb 1-1.5: new full-speed USB device number 7 using dwc_otg
[ 2729.432175] usb 1-1.5: New USB device found, idVendor=0403, idProduct=6001
[ 2729.432184] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2729.432190] usb 1-1.5: Product: FT232R USB UART
[ 2729.432196] usb 1-1.5: Manufacturer: FTDI
[ 2729.432202] usb 1-1.5: SerialNumber: A11S5W1Q
[ 2729.440059] ftdi_sio 1-1.5:1.0: FTDI USB Serial Device converter detected
[ 2729.440151] usb 1-1.5: Detected FT232RL
[ 2729.440925] usb 1-1.5: FTDI USB Serial Device converter now attached to ttyUSB0
Re: No devices after installing P1 cable
Posted: Friday 03 November 2017 12:42
by Jan Jansen
Marcjeok wrote: ↑Thursday 02 November 2017 18:54
Jan Jansen wrote: ↑Thursday 02 November 2017 7:05
I have a similar meter in my house and also had problems with it. This meter sends its data every second. I think I recognize the pattern in the displayed output.
I use the UART connection. The schematics I found on the internet did not work. Eventually I created a schematic (after experiments) that works. With a solder iron a few resistors and a BS 170 I solved the problem. If desired, I can post the schematic this evening.
Yes please. If it doesn't help me, It might help other people.
concerns E350 ZCF110CCtFs2
For setting up the UART serial port, I used (dutch)
https://www.p1connector.nl/raspberry-pi ... ng/#more-1 (baudrate 115200)
Re: No devices after installing P1 cable
Posted: Wednesday 08 November 2017 19:34
by Marcjeok
Thanks for all the help!
I've contacted the store and today I received a new cable. Now everything works fine. When I try 'cu -l /dev/ttyUSB0 -s 115200 --parity=none', I get the correct output and the items are visible at Devices.

- Output new cable.png (31.85 KiB) Viewed 2925 times
Thanks again!