Help

Setting up a scale gateway

For whoever installs the gateway.

Setting up a gateway takes about half an hour, most of it finding the scale's serial settings. The numbered steps below are for the PUSR USR-W610. For another gateway, use its own manual with the wired-gateway steps.

What the person using the scale does

Tap the field on the website and the weight appears above the keyboard. Tap the weight to type it. Only a steady reading is typed, and the weight can always be typed by hand.

It's a tap rather than automatic because, on a shared scale, the latest reading may be someone else's item.

What you need

  • A scale with a serial (RS-232) port, usually a 9-pin socket marked RS-232, COM or PRINTER. It must send readings continuously or answer a command asking for a weight.
  • A serial gateway that exposes that serial line on a plain TCP server port, and its power supply. Browsermatic connects to that local address and port.
  • A serial cable between them, wired to match the pin lists in both manuals.
  • A phone or tablet on the same local network. A wired gateway connects to the router, or to a Wi‑Fi bridge or extender's Ethernet port where a network cable cannot reach the bench.
  • The scale's manual, for speed, data bits, parity, stop bits and any command to request a weight.

The gateway needs no computer, cloud service or internet once it's set up. The optional W610 setup tool needs Python 3.

Which gateway to use

Browsermatic works with serial gateways that offer a plain TCP server for the serial port, such as the PUSR USR-W610 and the Moxa NPort range, for example the wired NPort 5110A. Other gateways can be added by their local address if they offer the same plain TCP interface.

A wired gateway connects to the router, or to a Wi‑Fi bridge or extender where a network cable can't reach the bench. For the NPort, see the Moxa product documentation.

Check the gateway maker's security notices, and keep the gateway on a staff network.

The USR-W610

The W610 joins 2.4 GHz networks only. For its initial setup, have your Wi‑Fi's name and password and a computer with Python 3 if you want to use our optional W610 helper script (w610.py — email support@browsermatic.app for a copy). The script is optional: you can use the gateway's settings page instead. It changes settings only on the gateway you choose.

Where Browsermatic's part ends

The business supplies and manages the scale, gateway, cable and network.

The app only connects to local scale addresses, and only sends the command that asks for a weight, if one is set. It doesn't change gateway settings.

Check the app's reading against the scale's display, and again after any change to the scale, gateway or serial settings. Browsermatic types the number; it doesn't decide whether a weighing setup is approved for trade.

Set up a wired gateway

Use that model's own current manual; the W610 commands below do not configure a Moxa or another manufacturer's device.

  1. Connect the scale's RS-232 port to the gateway with the correct cable. Match baud rate, data bits, parity, stop bits and flow control to the scale's settings.
  2. Connect the gateway's Ethernet port to the router or a configured Wi‑Fi bridge. Give it a reserved local address so the tablets can find it again.
  3. Select transparent TCP Server operation for the serial port. Note the data port configured on that device; do not assume that another model uses the W610's port 8899.
  4. Change factory admin credentials, install supported firmware, and turn off unused management services using the manufacturer's instructions. Restrict access to the tablets and the administrator where the gateway and router support it. Block gateway internet access and do not create internet-facing port forwards.
  5. Put the gateway on a staff-only or devices-only network. Allow the authorised tablets to reach its data port; a guest network with client isolation usually prevents this.
  6. In Browsermatic, use Settings › Scales › Add a scale and enter its local address and data port. Automatic PUSR discovery does not discover a Moxa. Then follow steps 7 and 8 below.

The serial connection isn't encrypted, so anyone who can reach it may read weights or send data to the scale. On a Wi‑Fi gateway, turn off its own access point if you can, or lock it with a strong key.

USR-W610: step-by-step setup

1. Set the scale to send its weight

In the scale's own menu (the manual calls it serial output, RS-232, print or communication):

  • Switch serial output on.
  • Choose continuous output (also called stream), if it has it. The weight then shows live in the browser. A scale that only sends when its PRINT key is pressed will not work well; one that answers a command can be used (step 7).
  • Write down its speed (baud rate), data bits, parity and stop bits. 9600, 8, none, 1 is the most common.

2. Put the gateway on your Wi‑Fi

A new W610 makes its own open Wi‑Fi network and has to be told to join yours.

  1. Power the gateway. On the computer, join the Wi‑Fi network named USR-W610_ followed by four characters. You lose the internet while you are on it.
  2. Open http://10.10.100.254 in a browser and sign in. A new unit's name and password are both admin; you change that in step 5.
  3. Mode Selection: choose STA Mode, leave Data Transfer Mode on Transparent Mode, Apply.
  4. STA Interface Setting: press Search, choose your Wi‑Fi, enter its password, leave the connection type on DHCP, Apply.
  5. Uart Setting: set 485 mode to Disable. A new unit is set for RS-485 wiring, and almost every scale is RS-232. This is the one setting the tool cannot change. Apply.
  6. Device Management: Restart. The USR-W610_ network disappears. Put the computer back on your own Wi‑Fi.

The tool can do steps 3, 4 and 6 instead, while you are on the gateway's own network:

./w610.py join --host 10.10.100.254

It asks for the Wi‑Fi's name and password, which are not shown or kept. Step 5 still has to be done on the gateway's page.

Then find the gateway on your Wi‑Fi:

./w610.py discover

It prints the gateway's address and its hardware address. If nothing appears after two minutes, the Wi‑Fi password was probably mistyped: hold the gateway's reset button for five seconds to return it to its factory settings, and start this step again.

3. Match the gateway to the scale

Give the gateway the serial settings you wrote down in step 1:

./w610.py serial --baud 9600

Add --data 7, --parity even or --stop 2 if the scale is not 8, none, 1. With no options, ./w610.py serial shows what the gateway is set to now.

4. Check the scale is talking

Connect the cable, switch the scale on, and run:

./w610.py listen

Put something on the scale. You should see a line for each weight, something like:

  'ST,GS,   1.234,kg'
  'ST,GS,   1.234,kg'

That is text: the serial settings match the scale.
You seeIt meansDo this
Lines with the weight in themIt worksGo on to step 5
"That is not text"The speed or parity is wrongCheck the scale's settings and repeat step 3. If you cannot find them, try 9600, 4800, 2400, 19200 in turn
"Nothing arrived"Nothing is reaching the gatewayIn order: press the scale's PRINT key (it may not be set to continuous); check the cable's wiring against the pin lists in both manuals; check 485 mode is Disable (step 2.5); check the scale's serial output is switched on

Don't go on until this shows weights.

5. Lock the gateway down

./w610.py harden

It asks you to choose a new sign-in for the gateway's settings page (up to 15 characters; keep it with your other passwords), then:

  • changes that sign-in from the factory one;
  • gives the gateway's own Wi‑Fi network a long random password and hides its name; verify those settings after restarting. A factory reset removes them;
  • switches off its Ethernet port (add --wired if you use it), its second connection, and the option that lets anything on the network change the serial speed;
  • limits it to four connections at once (--connections N: the number of phones and tablets that will read this scale, plus one);
  • restarts it and checks every setting.

It finishes with the same report ./w610.py audit gives at any time:

ok    Admin login                                      changed
ok    Its own access point needs a key                 WPA2PSK
ok    Its own access point is hidden                   on
ok    Ethernet port off                                off
...
open  Settings channel (UDP 48899)                     no password; cannot be closed on this model

Nothing to fix.

Every line should say ok, apart from any marked open: those are settings this model cannot close.

6. Settings on your router

How to do these depends on your router:

  1. Give the gateway a reserved address (also called a static lease or DHCP reservation), using the hardware address from discover.
  2. Block its internet access. It doesn't need it. Most routers can block one device, under parental controls or access control.
  3. Keep it off any guest network that isolates devices from each other: the tablet must be able to reach it. If your router has a separate network for devices (often called IoT) that your main network can still reach, put the gateway there.

7. Add the scale in Browsermatic

On each phone or tablet, on the same Wi‑Fi:

  1. Settings › Scales › Add a scale. Pick the gateway under "Found on this Wi‑Fi", or type its address.
  2. The scale's page shows what the scale is saying, live. It should say Steady and the same weight as the scale's display.
  3. Give it a name people will recognise, such as "Packing bench scale", and Save.
  4. In the browser, tap a field on a page: the weight shows above the keyboard. Tap it to type it.

Options on the scale's page:

  • Replace what is in the field (on by default), and a key to press afterwards: Tab to move to the next field, or Enter.
  • Advanced › Command that asks for a weight, for a scale with no continuous output. Enter the command from the scale's manual, writing Enter as \r\n: for example P\r\n, or SI\r\n for Mettler Toledo and KERN. The page shows at once whether the scale answers.
  • Advanced › Type a comma for the decimal point, for sites that expect 1,234.

To set up more devices, use Settings › Copy setup to another device: the scale travels in the code with the printers and rules.

8. Test it

  • With nothing on the scale, the app shows zero.
  • A known weight reads the same in the app as on the scale's display, at two different weights.
  • While the weight is still moving, tapping it waits, and types nothing until it settles.
  • Pull the gateway's power: within a few seconds the app says No weight, then Scale offline, and tapping types nothing. Plug it back in: the weight comes back automatically.
  • A person can still type a weight by hand at any time.

If something goes wrong later

What happensLikely causeFix
The app says Scale offlineThe gateway has no power, or lost the Wi‑Fi (a changed Wi‑Fi password, or it is too far from the router)Check its lights; ./w610.py discover from a computer
Scale offline on one tablet onlyThe gateway has given out all its connectionsClose Browsermatic on devices no longer using the scale, or raise the limit: ./w610.py harden --connections 6 --no-passwords
No weightThe scale is off, the cable is out, or the scale was reset and stopped sendingStep 4
Check scale (cannot be read)The scale's serial speed was changedSteps 3 and 4
The Wi‑Fi password changedThe gateway cannot joinHold reset for five seconds and start again from step 2
The sign-in from step 5 is lostHold reset for five seconds and start again from step 2

For reference

  • The optional helper script: w610.py (email support@browsermatic.app for a copy; --help lists everything). It talks to the gateway over its settings channel and never prints a password or a Wi‑Fi key.
  • The vendor's documents: the USR-W610 user manual and AT command set.