Problem using 2 QWIIC Dual Solid State Relay Boards

I recently purchased one of the Dual Solid State Relay boards (COM-16810) I wrote a Python program that uses the Multiprocessing library and the ac_relay_lib/QwiicRelay module, spawned off two tasks to control the dual relays independently it works GREAT!

So, I bought a second Dual Solid State Relay board, connected the QWIIC connectors and removed the link so that the address is 0B instead of 0A. Independently, the second board works great as well. However when I spawn 4 independent tasks to both addresses 0A and 0B it no longer works. I have tried several combinations, every time I send messages to both addresses it does not work. It almost seems like the QwiicRelay library doesn’t support interfacing to more than one board at a time. Can anyone help me?

Thanks for reaching out to us on this.

The program is likely trying to send both simultaneously, which ruins its buffer.

While we don’t offer assistance on the programming side other than what is covered in the examples, it might be worth looking into implementing a delay in the command sends (even something as small as 10ms should work). Here is a link to help get you going: https://realpython.com/python-sleep/

Hope this helps, and happy sparking!

Thanks, I solved the problem by using the Multiprocessing library in Python and spawning off individual tasks for each relay (max of 4). Seems to work fine now, they all work simultaneously

Btw - I used the lock mechanism in the Multiprocessor library to resolve the conflict