Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Global Cache iTach IP2SL TCP/IP to Serial Converter


Question

Posted

I have an iTach IP to Serial converter.  I want to send the following HEX string to my CCTV camera.

 

80 54

 

If I use this string in the Windows iTest application it works fine. However I'm not sure how to configure the virtual device within Fibaro to send this string as HEX

 

I have set the virtual device with the same working config in the iTest application.

IP address i.e. 192.168.0.79 and the port number 4999 (labelled serial 1 in the iTest application)

 

In the string screen I have added -

 

send 80 54

 

I have also tried -

 

send,80,54

 

But without success.  I can't find any documentation anywhere so any help would be appreciated.

12 answers to this question

Recommended Posts

  • 0
Posted

Hi Stealth,

 

You've got the IP/Port right but you should try the following:

 

Click string (and uncheck Wait for response) and then put:   80 54\r

If that doesn't work try 80 540x0D0x0A

Or 08 540x0D0x0A0x0D0x0A

 

Usually a matter of trial and error depending on what character return your camera is expecting. Its a eureka moment when you finally get there.....took me two days the first time!!

 

KR, Dave:)

  • 0
  • Inquirer
  • Posted

    Hi Stealth,

     

    You've got the IP/Port right but you should try the following:

     

    Click string (and uncheck Wait for response) and then put:   80 54\r

    If that doesn't work try 80 540x0D0x0A

    Or 08 540x0D0x0A0x0D0x0A

     

    Usually a matter of trial and error depending on what character return your camera is expecting. Its a eureka moment when you finally get there.....took me two days the first time!!

     

    KR, Dave:)

     

    Thanks Dave,

     

    No luck.  I tried it as you wrote it without the send option included in the string, removed the wait for response check and still no luck.

     

    Steve

    • 0
  • Inquirer
  • Posted

    Anyone any ideas?

    • 0
    Posted

    You could try:

    0x800x20540x0A

    Where 0x20 is for the space in the command. Do not use "wait for response" and reboot the hc2 before trying. I have seen it lockup after several tries, so just reboot to be sure.

    • 0
  • Inquirer
  • Posted

    You could try:

    0x800x20540x0A

    Where 0x20 is for the space in the command. Do not use "wait for response" and reboot the hc2 before trying. I have seen it lockup after several tries, so just reboot to be sure.

     

    Thanks I tried it as you said both with and without the "Wait for Response" checked and with the reboots with no luck.  I'm completely stuck on what else to try.

    • 0
  • Inquirer
  • Posted

    I now have the following hex command as the string -

     

    0x800x54

     

    I also have "Wait for Response" checked.  If I click on the button the camera moves 180 degs as it should, however if I press the same button again the camera won't move.  (If "Wait for Response" is unchecked then it won't work at all). After one press of the button I have to reboot the HC2 each time for the button to work again.

     

    If I use “Hercules SETUP utility by HW-group.com”  as a sniffer on the output of the HC2, it looks like the socket is staying open and not being killed after the initial press of the button, I think this maybe my issues?

     

    Is there a comMand I can append to my hex to close the socket?

     

    Thanks

     

    Steve

    • 0
    Posted

    You could try :

    0x0D or

    0x0A

    • 0
  • Inquirer
  • Posted

    You could try :

    0x0D or

    0x0A

     

    Thanks I tried these options but still no luck in closing the connection ready for the next command

    • 0
    Posted

    Hmm always troubles with these commands.Does the manual say anything about a specific command format ? For example: command + linefeed?

    • 0
  • Inquirer
  • Posted

    Hmm always troubles with these commands.Does the manual say anything about a specific command format ? For example: command + linefeed?

     

    No I think its a Fibaro issue as it work fine using the Global Cache iTest software.  The manual states the following -

     

    The command: 'turn 180 degrees' is a two byte command and has no parameters.

    1st byte.     'camera address'

    2nd byte.    54h Turn

    This command has no reply.
    • 0
  • Inquirer
  • Posted

    Looks like it's not possible at the moment. For some reason Fibaro won't close the socket for the resend command.  The workaround is to manually code the TCP/IP socket in the Virtual Device window as Lua code.  This is working for me -

     

    Please login or register to see this code.

    "IPAddress" and "TCPPort" is inputted on the front general screen page of the Virtual Device

     

    and 80 and 54 are my two hex bytes I needed to send.

     

    Steve

    • 0
    Guest andyhud
    Posted

    Hi Steve

     

    Old post I know but I've just got a second hand iTach Ethernet > Serial box that I want to hook upto my Epson projector which has a serial input

     

    Is this problem still applicable where the Fibaro won't drop the command. So if I send a Turn on command over serial, I may not be able to change the HDMI input on the projector because the previous command hasn't dropped?

     

    Or do I need to put each command into a VD like your last post above?

     

    Thanks

     

    Andy

     

    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...