Home AMX User Forum NetLinx Studio
Options

Sennheiser Media Control Protocol for ew300/500 receivers

Hi,

Has anyone experience using the Sennheiser Media Control Protocol for readout settings ie. battery level etc for a Sennheiser ew300 series receiver?
I have the protocol from the sennheiser site but I won't get any response.
I make a connection using UDP (type 3 in IP_CLIENT_OPEN) over port 53212.

Regards,

Hans Schouten.

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    Please post your code and well have a look at it. Perhaps it's something simple you're forgetting.
  • Options
    Please do not cross-post threads

    Please do not cross-post threads.

    You also posted this here: http://www.amxforums.com/showthread.php?9286-Sennheiser-Media-Control-Protocol-for-ew300-500-receivers.

    As Auser once put it:
    Auser wrote: »
    Spawning multiple identical threads for a single question such as you've been doing is considered poor forum etiquette and could mean that people won't answer your questions if they do have information which could be of help to you.

    If somebody hasn't answered your initial post, it could well be because we can't offer advice based on the information you've given.

    If nobody responds and you're desperate for an answer, post another message in the same thread you started providing more information on your situation instead of just posting the same question over and over in new threads. Posting code you've already written and the protocol for the device/application that you're having trouble with generally helps us to help you. The more information you provide, the more likely it is that we'll be able to help.
  • Options
    Dear Mr. Medley,

    Thanks for responding to my question.
    I have attached the Sennheiser protocol.

    A small part of my code:


    DEFINE_DEVICE

    dvSENNHEISER_1 = 0:7:3


    DEFINE_VARIABLE

    VOLATILE INTEGER iSENNHEISER_1_BAT_LEVEL


    DEFINE_EVENT

    DATA_EVENT[dvSENNHEISER_1]
    {
    ONLINE:
    {
    SEND_COMMAND Data.Device,"'RXON'"
    }

    STRING:
    {
    STACK_VAR CHAR cSENNHEISER_1_MSG[50]

    cSENNHEISER_1_MSG = Data.Text

    send_string 0,"cSENNHEISER_1_MSG"

    IF (FIND_STRING (cSENNHEISER_1_MSG,"$0D",1))
    {
    IF (FIND_STRING (cSENNHEISER_1_MSG,'Bat ',1))
    {
    REMOVE_STRING (cSENNHEISER_1_MSG,'Bat ',1)

    iSENNHEISER_1_BAT_LEVEL = ATOI(REMOVE_STRING (cSENNHEISER_1_MSG,"$0D",1))
    }
    }
    }
    }



    DEFINE_PROGRAM

    (*========================================*)
    (* GET SENNHEISER BAT LEVEL *)
    (*========================================*)
    WAIT 50 // for testing
    {
    IP_CLIENT_OPEN(dvSENNHEISER_1.Port, '192.168.40.160', 53212, 3) // UDP CONNECTION ! 3 = UDP WITH RECEIVE

    WAIT 10
    {
    SEND_STRING dvSENNHEISER_1,"'Bat',$0D"
    }
    }
    (*
    *)
  • Options
    mritzmritz Posts: 22
    I just looked at the Sennheiser protocol file and I think it is not possible to request the BAT level directly.

    You can get the BAT level as a part of the cyclic attributes.


    Use the Push command to get the cyclic attributes.
    To get a single status of this cyclic attributes use:

    (first open the ip connection)

    Push 0 100 0<CR>

    (the ip connection will close due a timeout mechanism included in the protocol)

    So you should get all cyclic parameters back once.

    You can find the cyclic attributes response on page 9 of the protocol.


    Regards,

    Markus
Sign In or Register to comment.