0

Serial problem



I have a controller wired up the the HD600 serial. When the controller and HD600 are powered up at the same time, the HD600 responds to the serial commands. But when the HD600 is running and the power on the controller is cycled, the HD600 does not respond to the serial commands. RS232 levels are fine in both cases. Any Thoughts?

3 comments

  • 0
    Avatar
    RokuLyndon


    What controller are you using? And, can you forward the script you are using with the player.



    <!-- e --><a href="mailto:lallydice@roku.com">lallydice@roku.com</a><!-- e -->
  • 0
    Avatar
    MustangAce


    The controller is a RCM2300 from Rabbit with an RS232 driver.



    The code:





    ser_msg_new = 0

    event = 0

    status = 0

    video = 0





    REM set up video

    v_mode = CreateObject("roVideoMode")

    v_mode.SetMode("640x480x60p")



    v_play = CreateObject("roVideoPlayer")

    v_play.SetLoopMode(0)



    v_msg = CreateObject("roMessagePort")

    v_mode.SetPort(v_msg)

    v_play.SetPort(v_msg)



    REM set up audio

    v_play.SetAudioMode(1)

    v_play.SetAudioOutput(4)

    v_play.MapStereoOutput(2)

    v_play.SetVolume(100)



    REM set up serial

    ser = CreateObject("roSerialPort", 0, 9600)

    ser.SetBaudRate(9600)

    s_msg = CreateObject("roMessagePort")

    ser.SetByteEventPort(s_msg)





    Begin:



    ser_msg_new = wait(100,s_msg)

    if type(ser_msg_new) = "roStreamByteEvent" then gosub play_video



    video_msg = wait(100,v_msg)

    if type(video_msg) = "roVideoEvent" event = video_msg.GetInt()

    if event <> 3 then video = 0:status = 0



    print "video:";video;" status:";status;" event:";event



    goto Begin





    play_video:



    f$ = "/" + str(ser_msg_new) + ".mpg"

    ok = v_play.PlayFile(f$)

    if ok = true then status = 1:video = ser_msg_new

    if ok = false then status = 0



    return
  • 0
    Avatar
    RokuLyndon


    I'm checking with one of our developers.
Please sign in to leave a comment.