Jump to content
  • 0

Sending serial commands to Global Cache iTach Flex (RS232/RS485)


Question

Hello guys,

 

I ran into interesting problem. Honestly i do not know if problem is in Fibaro or Global Cache, so i need some help. Ticket in partners dedicated channel: #95470.

 

I'm doing VD for a customer (Fibaro dealer) for control of Somfy RTS module (VD is below). But i'm able to receive only 8 comands, then it seems like connection get stucked. If i send commands from iTest (global cache app), that i am not a problem to receive more than 8 commands. If i send commands from Fibaro to PC directly (Hercules app can be set as TCP server), then i'm able receive more than 8 commands (Same port and protocol, just diffrent IP adress).

 

I'm sending those serial commands (RS-232/RS-485) to my Laptop to application Hercules (Link below).

 

Global Cache i'm using is iTach Flex IP. Cables connected are Flex Link RS-232 cable and Flex Link RS-485 cable. I tested it with both.

 

As RS-485 to USB converter i'm using something like that: http://www.rockonpro.pl/monacor-da-70157 or this one (rs-232) http://www.aten.com/global/en/products/usb-&-thunderbolt/usb-converters/uc232a/#.WWNf3ulpzg4

 

@T.Konopka or @M.Baranowski, can you look at this one please?

 

Global Cache Cables: https://www.globalcache.com/files/docs/DS_FLC-SL_final.pdf

Hercules app link: http://www.hw-group.com/products/hercules/index_en.html

Virtual device: Somfy_RTS.vfib

Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 0

I just tested iTach IP2SL. There i can send only 4 commands, till it stops working.

 

@T.Konopka, can some Fibaro Engineer look into this? Now, connection while using serial commands seems to be an issue. IR works just as should work. VD where i found an issue is in Post #1.

 

----- 2nd Message----

@T.Konopka, please tell to engineers that Connection to Global Cache have to be closed. Fibaro does not closing connection to Global Cache, so that is why it get stucked. Flex can have 8 connection at once and IP2SL only 4. That is FATAL issue

Edited by jakub.jezek
Link to post
Share on other sites
  • 0
2 hours ago, jakub.jezek said:

----- 2nd Message----

@T.Konopka, please tell to engineers that Connection to Global Cache have to be closed. Fibaro does not closing connection to Global Cache

 

even if you uncheck "Wait for device response" ?

Link to post
Share on other sites
  • 0
2 hours ago, tinman said:

 

even if you uncheck "Wait for device response" ?

I think yes. I test it tomorrow again to make 100% sure and report back.

Link to post
Share on other sites
  • 0

@tinman, even if i uncheck "Wait for device response", it still does not close connection. With unchecked "Wait for device response" it is even worse. I send command once and cannot send it again.

Link to post
Share on other sites
  • 0
Guest andyhud

Thanks. Let us know how it goes. I've just posted an issue with IP2Serial but my device (amplifier) doesnt use HEX, it uses ASCII.

 

Cheers

 

Andy

Link to post
Share on other sites
  • 0

Hello,

 

So, reporting back from testing.

 

It still does not work.

 

Spoiler

I can get only 8 commands through:
image.png.3326a8aa7af221ee12062f1df3a67da5.png

 

Spoiler

Fibaro does not send END to end connection. Only creates new ones:
image.png.e853e823f520db9e32f13f187e9749ab.png

 

 

Link to post
Share on other sites
  • 0
Guest andyhud

Damn! Thats a real shame. Have you logged as a bug with Fibaro?

Link to post
Share on other sites
  • 0

Well, it is logged under #95470 from last year. I will try to reach them again.

 

For a customer i made it work via code below (used for Somfy RTS control):

local ip = "10.0.0.10" -- IP adresa Global Cache /GC IP adress

-- níže neměnit/do not change below

tcpSocket = Net.FTcpSocket(ip, "4999");
tcpSocket:setReadTimeout(100);
tcpSocket:write(string.char(0x7F,0xF2,0xFA,0x01,0x00,0x00,0xF4,0x3E,0xFA,0xFE,0xFE,0x06,0x94)) -- command itself

fibaro:sleep(100);
result, err = tcpSocket:read();
tcpSocket:write("END"); -- Ending communication

if (err == 0) then
  fibaro:log("transfer OK");
  fibaro:debug("transfer OK");
else
  fibaro:log("transfer failed");
  fibaro:debug("transfer failed");
end

 

Edited by jakub.jezek
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...