SendCommand

Bizerba SOAP API (_connect.BRAIN)Direct Communication TCP/IP

x

SendCommand is used to transmit IxNet commands directly to a device. It uses the TCP/IP protocol. So the device has to be reachable via network.

Example Requests

Get software version

let result = await app.businessFunction({
  //Common Parameters for all functions
  functionName: "BizerbaScale",
  methodName: "SendCommand",
  silentMode: false, //false is default. If set to true, the Gebra Suite will not show an error message box. it is up to you to inform the user.
  
  ip: "192.168.0.100", //The IP of the device
  port: 1365, //Network port
  command: "I?GV05|LX02" //IxNet command
  timeout: 15 //Timeout in seconds for the request
});

Reboot device

let result = await app.businessFunction({
  //Common Parameters for all functions
  functionName: "BizerbaScale",
  methodName: "SendCommand",
  silentMode: false, //false is default. If set to true, the Gebra Suite will not show an error message box. it is up to you to inform the user.
  
  ip: "192.168.0.100", //The IP of the device
  port: 1365, //Network port
  command: "I!GX01" //IxNet command
  timeout: 15 //Timeout in seconds for the request
});

Get weight without rest rating

This command will always return the weights just measured. Even if the scale is not yet at rest.

let result = await app.businessFunction({
  //Common Parameters for all functions
  functionName: "BizerbaScale",
  methodName: "SendCommand",
  silentMode: false, //false is default. If set to true, the Gebra Suite will not show an error message box. it is up to you to inform the user.
  
  ip: "192.168.0.100", //The IP of the device
  port: 1365, //Network port
  command: "I?RX01" //IxNet command
  timeout: 15 //Timeout in seconds for the request
});

Get weight with rest rating

This command will only return the weights just measured if the scale i at rest.

let result = await app.businessFunction({
  //Common Parameters for all functions
  functionName: "BizerbaScale",
  methodName: "SendCommand",
  silentMode: false, //false is default. If set to true, the Gebra Suite will not show an error message box. it is up to you to inform the user.
  
  ip: "192.168.0.100", //The IP of the device
  port: 1365, //Network port
  command: "I?RX02" //IxNet command
  timeout: 15 //Timeout in seconds for the request
});

Example Response

//This is a response for command I?RX01 or I?RX02
{
  "GT08": "00",
  "GW01": "1",
  "GW06": "10",
  "GT0A": "11001000",
  "GD07": "lb;-3;720",  //gross weight => 0,720 lbs
  "GD02": "lb;-3;0",    //tare => 0,000 lbs
  "GD01": "lb;-3;720"   //net weight => 0,720 lbs
}

Last updated