Home NetLinx Studio

panasonic aw-he130

JubalJubal Junior MemberPosts: 77
Anyone know how to control it using IP?
Can't understand what was in the manual. I try to use terminal and didn't work too.

Comments

  • JubalJubal Junior Member Posts: 77
    I only need to control zoom + zoom - pan left right down and up
  • MLaletasMLaletas Junior Member Posts: 226
    Ive controlled a HE100 before, its REST like
  • MLaletasMLaletas Junior Member Posts: 226
    Here's a snippet:
        cHeader = "'GET /cgi-bin/aw_ptz?cmd=', cShortURI,'&res=1 HTTP/1.1',$0A"        //Command
        cHeader = "cHeader,'Host: ',SourceDEV.ControlIP,$0A"                //IP info
        cHeader = "cHeader,'Connection: keep-alive',$0A"
        cHeader = "cHeader,'User-Agent: curl/7.45.0',$0A"
        cHeader = "cHeader,$0A"  
    
    SourceDEV.CommandTilt[1]            = "'#T25'"
    SourceDEV.CommandTilt[2]            = "'#T75'"
    SourceDEV.CommandTilt[3]            = "'#T50'"
    SourceDEV.CommandPan[1]                = "'#P25'"
    SourceDEV.CommandPan[2]                = "'#P75'"
    SourceDEV.CommandPan[3]                = "'#P50'"
    SourceDEV.CommandZoom[1]            = "'#Z25'"
    SourceDEV.CommandZoom[2]            = "'#Z75'"
    SourceDEV.CommandZoom[3]            = "'#Z50'"
    SourceDEV.CommandFocus[1]            = "'#F25'"
    SourceDEV.CommandFocus[2]            = "'#F75'"
    SourceDEV.CommandFocus[3]            = "'#F50'"
    

    1 = Left || Up || In
    2 = Right || Down || Out
    3 = Stop

    Make sense?
  • Bruno ArosemenaBruno Arosemena Junior Member Posts: 10
    You can try my module from the AW-HE120
  • JubalJubal Junior Member Posts: 77
    MLaletas wrote: »
    Here's a snippet:
    cHeader = "'GET /cgi-bin/aw_ptz?cmd=', cShortURI,'&res=1 HTTP/1.1',$0A" //Command
    cHeader = "cHeader,'Host: ',SourceDEV.ControlIP,$0A" //IP info
    cHeader = "cHeader,'Connection: keep-alive',$0A"
    cHeader = "cHeader,'User-Agent: curl/7.45.0',$0A"
    cHeader = "cHeader,$0A"
    
    SourceDEV.CommandTilt[1] = "'#T25'"
    SourceDEV.CommandTilt[2] = "'#T75'"
    SourceDEV.CommandTilt[3] = "'#T50'"
    SourceDEV.CommandPan[1] = "'#P25'"
    SourceDEV.CommandPan[2] = "'#P75'"
    SourceDEV.CommandPan[3] = "'#P50'"
    SourceDEV.CommandZoom[1] = "'#Z25'"
    SourceDEV.CommandZoom[2] = "'#Z75'"
    SourceDEV.CommandZoom[3] = "'#Z50'"
    SourceDEV.CommandFocus[1] = "'#F25'"
    SourceDEV.CommandFocus[2] = "'#F75'"
    SourceDEV.CommandFocus[3] = "'#F50'"
    

    1 = Left || Up || In
    2 = Right || Down || Out
    3 = Stop

    Make sense?

    Sorry but can't understand
  • MLaletasMLaletas Junior Member Posts: 226
    Sorry if I am not clear my wife constantly reminds me that my communication skills suck . So which part is throwing you off?

    Basically I throw one of the ptz commands into a function which has that header building, it goes where I the "cShortURI", at theach end send off the entire cHeader command to the device.
  • fogled@mizzou[email protected] h4x354x0r Posts: 549
    Note that the newer AW-HE series cameras have changed the way they react to HTTP calls within the last year or so. Before, they would still respond and work to malformed URLs (I know because I've got older AW-HE60 cameras working with incomplete/malformed URL calls); now, the URL must fully conform to standards (I've got cameras working with updated, correctly formed URL's as well).
    send_string DeviceID, "'GET /cgi-bin/aw_ptz?cmd=#', thisCommand,
    'HTTP/1.0', $0D, $0A, 
    'Host: ', thisIPAddress, $0D, $0A, 
    'Connection: close', $0D, $0A, 
    $0D, $0A"
    

    DeviceID, thisCommand, and thisIPAddress are variables fed into the function from elsewhere in the code. Note that, in my "old" code, I've got the pound sign getting sent twice: "...cmd=##T50..." ...because of a bug in my code, and it just works, and they also work without any proper HTTP GET 'connection close' and two consecutive CR,LF character sets in termination code. Newer versions of cameras will not work with the two pound signs in the URL, and also won't work without the fully, correctly formed URL with the two sets of CR,LF being sent at the end. However I'm not sure if the CR *and* LF are really required (I think they are), or whether just the LF is required (code sample above). I would try that one change first.

    It took me awhile to realize newer versions of the cameras are a lot more strict about the format of the GET call than my older cameras.
  • MLaletasMLaletas Junior Member Posts: 226
    With mine i recall having a doc that said just a LF, so I didnt question it. I loaded it, it worked so I walked away. I guess I could have tried different combinations to see how it would have reacted.
  • fogled@mizzou[email protected] h4x354x0r Posts: 549
    If it works with just the LF, it obviously works with just the LF. I appreciate the confirmation.
Sign In or Register to comment.