Electronic Scale

1.Electronic scale information

Electronic scale information table

Host Model

D1w

Measuring range

100g-15kg/30kg(Double range)

Certified division value

5g/10g

Safe overload (%FS)

120

Destroy overload (%FS)

150

Working temperature (℃)

-10℃~40℃

Working humidity

10%~85% No condensation

Creep(%FS/30min)

+-0.02

Equipment dealer/model

厦门佰伦斯电子/W23

Porter rate

9600

Access mode

Serial(/dev/ttyS4)

3.Electronic scale software development

The method of application

Link Electronic scale sdk downloads

Binding the electronic scale service to obtain relevant data for the electronic scale

Initialization

Open the serial port and obtain the net weight and state of the electronic scale by means of an interface callback

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Electronic mElectronic = new Electronic.Builder()
//default path
.setDevicePath(“/dev/ttyS4”)
//default porter rate
.setBaudrate(9600)
.setReceiveCallback(new ElectronicCallback {
@Override
public void electronicStatus(String weight, String weightStatus) {
//Callback in child thread
  ...
}})
 .builder()
Electronic Parameters

Parameters

Description

Weight

Unit(kg)

scale state

46:overweight, 53:Normal, 55:unstable, 56:Successful manual peeling, 57: Failure of manual peeling

Get the function of zero clearing and peeling of electronic scale by direct calling method

  • zero clearing

    mElectronic.turnZero()

  • Weigh with tare removal

    mElectronic.removePeel()

  • Manual peeling

    mElectronic.manualPeel(int peelWeight)

  • Turn off the electronic scale

    mElectronic.closeElectronic()