Waveshare RS485 adapter with Raspberry pi

Hi everybody,

I have the following setup:

The RS485 module described in Homegear documentation (https://www.homegear.eu/index.php/RS485_Serial_Module) has two separate pins for “driver enable” and “receiver enable” however my module has only one pin described as RSE.

I have tried all the combinations of setup in physical interfaces.conf to make it work but no luck. When I try to search for the devices on the bus, the log is full of errors:

03/22/15 22:34:09.155 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is still free... sending... (Packet: FDFFFFFFFF9800000001037A6D72) 03/22/15 22:34:09.155 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FDFFFFFFFF9800000001037A6D72) 03/22/15 22:34:09.155 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FDFFFFFFFF9800000001037A6D72 03/22/15 22:34:09.209 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:09.511 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is still free... sending... (Packet: FDFFFFFFFF9A00000001037AC10E) 03/22/15 22:34:09.511 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FDFFFFFFFF9A00000001037AC10E) 03/22/15 22:34:09.511 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FDFFFFFFFF9A00000001037AC10E 03/22/15 22:34:09.566 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:09.870 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FD0000000003026C76) 03/22/15 22:34:09.870 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FD0000000003026C76 03/22/15 22:34:09.924 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:09.940 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FD0000000003026C76) 03/22/15 22:34:09.940 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FD0000000003026C76 03/22/15 22:34:09.994 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:10.010 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FD0000000003026C76) 03/22/15 22:34:10.016 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FD0000000003026C76 03/22/15 22:34:10.070 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:10.116 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: Waiting for RS485 bus to become free... (Packet: FDFFFFFFFF9C00000001035A05CC) 03/22/15 22:34:10.317 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is free now. Waiting randomly for 42ms... (Packet: FDFFFFFFFF9C00000001035A05CC) 03/22/15 22:34:10.359 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is still free... sending... (Packet: FDFFFFFFFF9C00000001035A05CC) 03/22/15 22:34:10.360 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FDFFFFFFFF9C00000001035A05CC) 03/22/15 22:34:10.360 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FDFFFFFFFF9C00000001035A05CC 03/22/15 22:34:10.413 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:10.715 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is still free... sending... (Packet: FDFFFFFFFF9E00000001035AA9B0) 03/22/15 22:34:10.716 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FDFFFFFFFF9E00000001035AA9B0) 03/22/15 22:34:10.716 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FDFFFFFFFF9E00000001035AA9B0 03/22/15 22:34:10.770 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 22:34:11.071 Module HomeMatic Wired: Info: Search completed. Found 0 devices.

Seems like there is a problem switching RX / TX mode. When I create an event on the RS485 bus (pushing the button which is connected to RS485 Homematic module) it is somehow detected by Homegear, but…

03/22/15 21:42:30.971 HomeMatic Wired packet received: FDFFFFFFFF9800004E29064B070036C7C8 03/22/15 21:42:30.972 Info (Wired): Packet processing took 1 ms. 03/22/15 21:42:30.993 HomeMatic Wired packet received: FDFFFFFFFF9A00004E291241071200030648455130313439333339AF54 03/22/15 21:42:30.993 Info (Wired): Packet processing took 0 ms. 03/22/15 21:42:30.993 Module HomeMatic Wired: Info: New device detected on bus. 03/22/15 21:42:30.997 Info: Can't execute command (Error-no.: 1): no such savepoint: peer46 03/22/15 21:42:31.056 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: Waiting for RS485 bus to become free... (Packet: FD00004E291A0000000106520000104C70) 03/22/15 21:42:31.207 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is free now. Waiting randomly for 20ms... (Packet: FD00004E291A0000000106520000104 C70) 03/22/15 21:42:31.227 Module HomeMatic Wired: Debug: HomeMatic Wired Device 0x4: RS485 bus is still free... sending... (Packet: FD00004E291A0000000106520000104C70) 03/22/15 21:42:31.227 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FD00004E291A0000000106520000104C70) 03/22/15 21:42:31.227 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FD00004E291A0000000106520000104C70 03/22/15 21:42:31.279 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 21:42:31.380 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FD00004E291A0000000106520000104C70) 03/22/15 21:42:31.380 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FD00004E291A0000000106520000104C70 03/22/15 21:42:31.431 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 21:42:31.532 Module HomeMatic Wired: RS485 Module "Wired": Debug: RS485 device: Got lock for sending... (Packet: FD00004E291A0000000106520000104C70) 03/22/15 21:42:31.532 Module HomeMatic Wired: RS485 Module "Wired": Info: Sending: FD00004E291A0000000106520000104C70 03/22/15 21:42:31.583 Module HomeMatic Wired: RS485 Module "Wired": Error sending HomeMatic Wired packet: No sending detected. 03/22/15 21:42:31.691 Module HomeMatic Wired: Error: HomeMatic Wired Central: Could not pair device with address 0x00004E29. Could not read master config from EEPROM.

Can this Waveshare module be used with Homegear? How should it be configured in physical interfaces.conf? Please help, I’ve already spent many hours trying :slight_smile:

Wireless BidCos devices are working fine with the CUL stick.

Thank you very much
Jan

Hey Jan,

you can’t currently use devices, which can only switch between RX and TX. The problem is, that for some reason flushing is not working correctly and I don’t know when sending is finished. I never really looked into it, as simultaneous sending and receiving helps in detecting collisions and therefore is the better option anyway. So at least for the moment you need another RS485 module (I recommend a serial module with two pins for “driver enable” and “receiver enable”).

Cheers,

Sathya

Hi Sathya,

thanks a lot for your explanation. I just ordered the correct module.

Best regards
Jan