This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

RS485
#3
(05.08.2016, 13:50)Ok i will try this. Thank a lot  rocfusion.rocfusion Wrote: Try a connecting to a different port,  I found that with a LM4 only one port was working

I created a function and stored this in the Common scripts.

Code:
function sendSOMFY(command)
 require('serial')
 port = serial.open('/dev/RS485-3', { baudrate = 4800, parity = 'odd', duplex = 'half', databits = 8, stopbits = 1 })
 port:flush()
 port:write(command)
 port:close()
 sleep(0.1)
end

Also the codes you use,  there are different versions of the Somfy command generator.  Depending on what type of motor being used each version may generate a different RS485 command.  Also be sure your selecting the right addressing scheme, ie individual or group which is determine by how that motor has been programmed.

thx

Roger
Reply


Messages In This Thread
RS485 - by Girish - 05.08.2016, 10:11
RE: RS485 - by rocfusion - 05.08.2016, 13:50
RE: RS485 - by Girish - 06.08.2016, 05:08
RE: RS485 - by buuuudzik - 27.08.2016, 14:57

Forum Jump: