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

RS-232 communication - Pioneer


Pav

Question

Hi,

I'm trying to control Pioneer SC-LX79 AV Receiver via Fibaro HC2 and Global Cache IP2SL (IP to Serial).

I've attached a few screen shoots. This is my firs contact with RS-232 communication and I would be grateful for advise why the created buttons don't work.

Cheers

Pav

Please login or register to see this attachment.

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Hi @Pav ,

 

Welcome to Fibaro forum.

This is not really a place to ask this question but just to say hello. Still I can try to help you. Sending commands to another device connected to your home network from HC2 is still not that simple. Since you have HC2 you can select Lua code on buttons of your VD and try to use this code:

 

Please login or register to see this code.

Above example is for POWER ON command. For other commands you just need to change line where sendCommand is defined. CR stands for carriage return or Enter key on keyboard. It must be send as byte data and not as set of characters <CR>

 

Enjoy coding! :-) 

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Hi,

    Many thanks for the response.

    My understanding was that one of the reason for the forum is to get advice from more experienced users. 

     

    When I used Global Cache IP2IR it was very simple to create VD just copying  a string and job done. I thought that I can do the same for the IP2SL (with a right command).

     

    Are you saying that without LUA coding I will not be able to send command using RS232?

    Cheers

    Link to comment
    Share on other sites

    • 0
    On 3/17/2019 at 9:37 PM, Pav said:

    Are you saying that without LUA coding I will not be able to send command using RS232?

     

    No, that is not what I'm saying.

     

    I just provided you solution that I'm using in LUA which I tested. It is entirely up to you if you want to use it or wait for another non LUA solution.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Many thanks, your help is appreciated. 

    Unfortunately, I don't know LUA which is massive limitation for me :(

    I set up IP and Port for the Global Cache IP2IR as on the attached picture and then copied your LUA code to the button.

    1.JPG.e3f4b56e2b005722ab115f0dfd84f034.JPG

    Would you be kind to advise what am I doing wrong?

    Do I need to specify IP and Port in your code?

     LUA.JPG.396e69b0514bdc2347bec33c544c1da1.JPG

     

    In my previous post, I meant I set up IP and Port for the Global Cache IP2SL (not IP2IR).

    Link to comment
    Share on other sites

    • 0
    On 3/20/2019 at 11:13 PM, Pav said:

    Do I need to specify IP and Port in your code?

    No, the code is reading IP and Port from your settings.

    Link to comment
    Share on other sites

    • 0
    On 3/23/2019 at 8:59 AM, Bodyart said:

    No, the code is reading IP and Port from your settings.

    Hi Bodyart, i cant seems to find your reply. Do you mind to repeat it again?

    @Pav could you please let me know how you got it to work?

    Thanks!

    Link to comment
    Share on other sites

    • 0

    Hi @jamietang,

    there is no other replay, than you have seen. I was refering to question from @Pav

    On 3/20/2019 at 11:13 PM, Pav said:

    Do I need to specify IP and Port in your code?

     

    Please login or register to see this link.

    IP address and Port number filled in the input fields as shown by @Pav are read by the code as shown above.

    Link to comment
    Share on other sites

    • 0
    20 hours ago, Bodyart said:

    Hi @jamietang,

    there is no other replay, than you have seen. I was refering to question from @Pav

    IP address and Port number filled in the input fields as shown by @Pav are read by the code as shown above.

    oh.. thanks! but it is for HC2 with LUA code?

    Is it possible to do it with HCL using VD?

    My serial command is simple, 1! or 2!

    i can send using itest, but with the vd, I cant get it to work.

    Any advice? thanks!

    Update
    ASCII command works fine on HCL directly. What I did was close itest, restart HCL. Not sure which one does the trick.

    Edited by jamietang
    update
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • It didn't work because of two reasons. 

    Firstly, I thought that the LUA code for the button (kindly provided by Sankotronic), which incorporate Pioneer command, should be send via the IP2SL. For this reason, in the VD I specified IP address of the IP2SL. However, the command can be sent to a HC2 directly via IT network (without IP2SL) so IP address of the VD should for an AVR.

    Secondly, I've activated port 4999 in my AVR.

     

    The only problem which I have is that respond time for POWER ON is various, sometimes up to 7s. Is there solution for this?

     

    P.S. This is my first post and I accidentally put it to wrong place of the forum. Is it possible to move it to the right location?  

    Link to comment
    Share on other sites

    • 0

    The topic has been moved from "

    Please login or register to see this link.

    " to "

    Please login or register to see this link.

    ".

     

    Temat został przeniesiony z "

    Please login or register to see this link.

    " do "

    Please login or register to see this link.

    ".

    Link to comment
    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...