Page 1 of 7 123 ... LastLast
Results 1 to 10 of 64

Thread: SKY rs232 into girder OH YES!

  1. #1
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    371

    Default SKY rs232 into girder OH YES!

    according to this link your sky box sends out rs232 signals for current channel number, current channel name, start time etc...

    surely this output could wire into girder and update netremote with your status...

    Telling the sky box what to do would have to be through IR and the reponse returned on next update via rs232.

    So it can be done!!!

    IR for controls
    RS232 for feedback & status

    About time someone wrote a plugin for this (I don't have sky, but thought you guys who do might want to look into this...)

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

    Default

    Cool - I see there's also a link there for a controller that plugs into the RF2 port that will provide serial or USB control
    --Rob

  3. #3
    Join Date
    Mar 2008
    Location
    Nottingham, England
    Posts
    406

    Default

    has anybody got one or intends to get one to test?


    cheers

    Mark
    some people learn by writing, some by reading, some by listening and some by doing?...me I'm not learning at all

  4. #4
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    371

    Default Ascii Conversion

    How do turn a string of hex into an ascii text line
    this...
    Code:
    37 41 64 6d 69 72 61 6c  20 43 68 65 67 77 69 64
    is supposed to turn into this...
    Code:
    7Admiral Chegwid
    i can't get it to 'transform' in girder. What string.format do i need to use?

    it works ok on an online hex=ascii convertor but i can't find which LUA to use...

  5. #5
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    371

    Default

    string.char with a print gave me an error as did string.format('%c...........')

    Any ideas? Surely i can decode/translate this string with girder???

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

    Default

    I think that's serial.hextobyte(), but you'll have to strip out the spaces first.
    --Rob

  7. #7
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    371

    Default

    i put a variable with the value of "41" into girder

    a test scripting action contains this...
    Code:
     
    local master = jimtest.hexdump
    print (master)
    --
    local format = string.format('%c', master)
    print (format)
    --
    local char = string.char(master)
    print (char)
    --
    local hextobyte = serial.hextobyte(master)
    print (hextobyte)
    I get an error on the last 'hextobyte' lines...Might you have a quick couple of lines for this?

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

    Default

    Ok, use math.hextobyte instead (it's actually the same function)
    --Rob

  9. #9
    Join Date
    Jan 2008
    Location
    Near some trees in Essex, UK
    Posts
    371

    Default

    thats a winner with "41" as the value (i'm guessing it see's this as a number...)

    if i load the variable with "37 41 64 6d 69 72 61 6c" then i get the error "expected number, got string"

    if if load it with "3741646d6972616c" i get the same. (still in there as string in VI)

    this is how i load the variable
    Code:
    jimtest.hexdump = ('37 41 64 6d 69 72 61 6c')
    Is there a better way to get it into the variable & start it correctly? Does the problem lie with girder seeing it as a string rather than something else???

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

    Default

    Try

    Code:
    print(math.hextobyte('37 41 64 6d 69 72 61 6c'))
    --Rob

Page 1 of 7 123 ... LastLast

Posting Permissions

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