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
#1
Hi,

      We are trying to control Somfy Curtain by sending Hexadecimal code from Logic Machine to Somfy RS485 RTS transmitter. We are not able to control the curtain by sending hexadecimal code from Logic Machine lm3. We have used following Script:

if not port then
require('serial')
port = serial.open('/dev/RS485-2', { baudrate = 4800, parity = 'odd', duplex = 'half' })
port:flush()
 
end
-- port ready
if port then
  cmd=string.char(0x7F, 0xF2, 0xFA, 0xFF, 0x00, 0x00, 0xB0, 0x4E, 0xFA, 0xF3, 0xFD, 0x07, 0x52)
 alert(cmd)
  res, err=port:write(cmd)
end

       Please check and tell if there is any problem with the Script. If No problem with this Script. what may be the problem?

We are able to control Somfy RTS curtains by sending RS485 hexadecimal command from PC RS485 software but we are not able to control from Logic Machine.

Please help us to solve this problem.
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: