Driver AUTMOTE

Introduction
  • Is a library implemented in .NET that allows your program to interact with AutMote or Autmote_Emulator using C#.
  • You can use for free only for non-commercial use. If you want a commercial use, please contact for more information.
Available functions:

int Initiate(UInt16 portDevices, String IPMulticast, UInt16 portMulticast, String serviceName): Starts the driver. The driver needs to be initiated before call any other method.
  • portDevices : Port where device connections will be accepted. AutMote works on port 55600.
  • IPMulticast : Multicast group IP. AutMote joins the group "239.255.239.70".
  • portMulticast : Multicast port. AutMote works on port 55600.
  • serviceName : Name for this service. Repeated names will not be allowed in the same network.
  • Returns 0 if the driver is successfully initiated, and greater than 0 if the initialization fails.
int Stop(): Stops the driver.
  • Returns 0 if the driver is successfully stopped, else greater than 0.
String driverName(): Returns the driver name and version number.
  • Returns a string with the driver name and version.
int ClearReceptionQueue(): Clear the reception queue.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int ReturnReceived(ref String code, ref String key): Returns the first pair (user, function) in the reception queue.
  • code : User code.
  • key : Function received.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int ReturnReceivedList(ref ArrayList codeList, ref ArrayList keyList): Returns all pairs (user, function) in the reception queue.
  • codeList : List with user codes.
  • keyList : List with the functions.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int AddUser(String code, String key, String language, int numFunctions): Adds an user to the allowed user list.
  • code : User code.
  • key : User PIN code.
  • language : Buttons language.
  • numFunctions : Number of assigned functions.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
void DeleteUsers(): Clears the driver user list. The connected users will not been disconnected.
int ReturnConnectedUsers(ref ArrayList connectedList): Returns a list with all connected and authenticated users.
  • connectedList : User list.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int AddWordToLanguage(String language, String key, String word): Adds a word to a language. If the language ID does'nt exists, a new language with this ID will be created.
  • language : Language ID.
  • key : Word key. "00" for back button. "01" for the main button. "02" for the disconnection string.
  • word : Word in the selected language.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
void DeleteLanguages(): Clears all words and deletes all languages.
int SendPublicMessageMulticast(String message): Send a message to all devices vía UDP multicast.
  • message : Message to send.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int DeletePrivateMessageFromMulticast(): Sends a command to all devices to clear the private message vía UDP multicast.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int DeletePrivateMessages(ArrayList exceptions): Clears the private message in all devices but all in the exception list.
  • exceptions : List with user codes that his private message will NOT be cleared.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
void SendDisconnectionMulticast(): Sends a disconnection command to all devices vía UDP multicast.
int SendPrivateMessage(String user, String data): Sends a private message to an user.
  • user : Recipient user code.
  • data : Message to send.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int SendPrivateMessage(String user, String data, String sound): Sends a private message to an user with an associated sound.
  • user : Recipient user code.
  • data : Message to send.
  • sound : Sound that will be reproduced when the message is received. 0 = no sound. 1-10 = default sounds.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int SendUserDisconnection(String user, String sound): Sends a disconnection command to an user.
  • user : Recipient user code.
  • sound : Sound that will be reproduced when the message is received. 0 = no sound. 1-10 = default sounds.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int SendSound(String user, String sound): Sends a command to a device to play a sound.
  • user : Recipient user code.
  • sound : Sound that will be reproduced when the message is received. 0 = no sound. 1-10 = default sounds.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int SendUserColorButtonColor(String user, String buttonKey, int buttonColor, String textColor, int state, String sound): Sends a command to an user to change a button color.
  • user : Recipient user code.
  • buttonKey : ID button ("00" = Back button, "01" = Main button)
  • buttonColor : Button color (1=White, 2=Black, 3=Red, 4=Green, 5=Blue).
  • textColor : Text color in 6-digit RGB format (ej. Red="FF0000").
  • state : State for the color (1=Pressed, 2=Normal).
  • sound : Sound that will be reproduced when the message is received. 0 = no sound. 1-10 = default sounds.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
int SendGlobalColorButtonColor(String buttonKey, int buttonColor, String textColor, int state, String sound): Sends a command to all devices to change a button color.
  • buttonKey : ID button ("00" = Back button, "01" = Main button)
  • buttonColor : Button color (1=White, 2=Black, 3=Red, 4=Green, 5=Blue).
  • textColor : Text color in 6-digit RGB format (ej. Red="FF0000").
  • state : State for the color (1=Pressed, 2=Normal).
  • sound : Sound that will be reproduced when the message is received. 0 = no sound. 1-10 = default sounds.
  • Return 0 if the operation successfully ended, and returns greater than 0 if it fails.
void ConfigureButtonSounds(Hashtable buttonSounds): Sets the button sounds for all users.
  • buttonSounds : Hashtable with pairs (IdButton,sound).
  • Buttons: "00" = Back button, "01" = Main button, "02" = Disconnected text.
  • Sounds: 0 = no sound, 1-10 = default sounds.
Sample project: