Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39

Thread: RS232 control of Harman Kardon AVR635

  1. #31
    Join Date
    Mar 2006
    Posts
    27

    Default

    yes

  2. #32
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    can you post the log of what happens when you try that one with Girder?
    --Rob

  3. #33
    Join Date
    Mar 2006
    Posts
    27

    Default

    this is what I send with the "Serial Send Action" as Hex (mute command)
    Code:
    504353454e4402048070c13e414e00
    and this is the log
    Code:
    Serial:  HK 435 :  Command queued:  50 43 53 45 4E 44 02 04 80 70 C1 3E 41 4E 00      PCSEND..€pÁ>AN.  at postion  1
    Serial:  HK 435 :  Simple Send:   50 43 53 45 4E 44 02 04 80 70 C1 3E 41 4E 00      PCSEND..€pÁ>AN.
    Serial:  HK 435 :  Simple Receive:  Data    Code:  16384
    Serial:  HK 435 :  ERROR: No response to last command

  4. #34
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Try it without the 00 at the end - it's not part of the command
    --Rob

  5. #35
    Join Date
    Mar 2006
    Posts
    27

    Default

    yeeeeees - that was it!

    when I am done, I will post the whole thing here.
    thanks a lot for your help!!

    barca

  6. #36
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default


    You might also want to add the following function
    Code:
        Command = function(self, words, asHex)
            local data
            if asHex then
                data = serial.hextobyte(words)
            else
                data = words
            end
            local csodd = 0
            local cseven = 0
            for i = 1, string.len(data) - 1, 2 do
                csodd = math.bxor(csodd, string.byte(data, i))
                csevent = math.bxor(cseven, string.byte(data, i + 1))
            end
            self:SendCommand('PCSEND'..serial.hextobyte('0204')..data..csodd..cseven)
        end,
    That should, in theory, calculate the checksum for you - you'd call it from
    a GML using e.g. Harman_Kardon:Command('8070C13E', true)
    --Rob

  7. #37
    Join Date
    Mar 2006
    Posts
    27

    Default

    good idea. I already started hard wiring it with an online xor calculator. at some point I might add to readout the hk display, which is kind of cool too.

    anyways, that´s it.
    Attached Files Attached Files

  8. #38
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    thanks,

    would you mind uploading to http://www.promixis.com/uploads_list.php

    that way its easy for everyone to see, and you get your name in lights

  9. #39
    Join Date
    Feb 2007
    Posts
    160

    Default Not working like I want

    Quote Originally Posted by barca0 View Post
    good idea. I already started hard wiring it with an online xor calculator. at some point I might add to readout the hk display, which is kind of cool too.

    anyways, that´s it.

    Hi barca0,

    Can you have a look at this? I have an AVR 445 that use the same protocol. I have a serious problem in sending the commands reliably. It works but it seems that Girder is struggling with all the incoming traffic from the receiver. I can send commands but the receiver just can't get them all the time. I have disabled all I could in Girder but still the same. Do you have the same problem?

    I'm looking for a solution!

    Thank you

    Charles

Page 4 of 4 FirstFirst ... 234

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •