Diary
Connecting the 'weight' of the field to the Web. Two to three months of struggling with a truck scale (SP-600) at a waste weighing station in Kuwana.

In daily contract development and product development, the majority of the work involves hitting APIs on the cloud and assembling modern web frontends. However, what I've been dealing with recently was the exact opposite of that abstract web world: a mass of iron, wiring, and electrical signals.
We are currently working with a client in the Kuwana area of Mie Prefecture on a business improvement project for industrial waste treatment. Today, we successfully completed the verification process for extracting weight data from the core on-site equipment—the truck scale (Kubota Keiso's indicator "SP-600") installed at the weighbridge—via RS-232C serial communication, displaying it in real-time on a web screen, and performing bidirectional data synchronization with the cloud infrastructure.
Visiting the site about once a week, we went through a process of trial and error for approximately 2 to 3 months. I want to record today's events as a chronicle of the gritty struggle of continuously facing physical hardware and the "challenges of modern development environments" that I keenly felt during on-site development.
Why connect truck scales to the web?
In industrial waste treatment, recycling, construction aggregate, manufacturing, and transportation industries, one of the most critical pieces of equipment that forms the backbone of daily operations is the "truck scale" (platform scale/large vehicle weighbridge).
An industrial waste transport truck drives onto the weighbridge to first measure its gross vehicle weight. After unloading, it drives onto the scale again to measure its empty weight, and the difference determines the net weight of the loaded waste. This figure directly becomes the weighing certificate, manifest (industrial waste management form), and receiving/shipping slip, serving as the basis for sales and purchase invoices, and accurate performance data for legal compliance. It is truly the "source" of business transactions and figures.
However, in many workplaces, this extremely important weighing data is "disconnected" from the system.
Weighbridge operators stare intently at the numbers displayed on the indicator's digital panel, and the moment the value stabilizes, they either handwrite it on a paper slip or manually enter it into a dedicated standalone terminal. Furthermore, it's not uncommon for these slips to be taken back to the office later and re-entered two or three times into core systems or Excel.
- Risk of digit errors and transcription mistakes due to manual entry
- Waiting times where trucks queue up on roads outside the premises, waiting to be weighed
- Time lag until data is reflected in headquarters or warehouse systems
What if the accurate weight data output from the indicator flowed directly to a web screen in real-time the moment a truck drove onto the scale, and was immediately and automatically synchronized with the core database in the cloud? Transcription friction would be eliminated, and slip issuance and acceptance registration would be seamlessly completed on the spot.
Integrating physical hardware with the web and cloud is the most effective and impactful way to solve the gritty challenges on-site in one go.
Two to three months of gritty verification, starting with TeraTerm
However, it's not a sweet world where "you just plug in a cable and it connects." We're dealing with industrial equipment that has been operating on-site for many years and the RS-232C serial communication standard, which has a history of over half a century.
On the first day I arrived on site, I started by launching TeraTerm on my laptop and monitoring the raw logs from the COM port. From that day until now, I've visited the site once a week, tackling each issue one by one over approximately two to three months.
The hurdle of physical cable specifications and wiring configurations
I wrestled with wiring diagrams, tester in hand, to determine whether the pin assignments for transmit (TxD) and receive (RxD) should be straight between the indicator (SP-600) and the PC's USB-serial converter, or if they needed to be crossed (reversed / null modem). Furthermore, I had to figure out if hardware flow control (handshake) wiring like RTS/CTS or DTR/DSR was necessary, or if they should be loopback-shorted within the connector.
Industrial site noise and converter chip compatibility
In environments where heavy machinery, high-voltage power receiving equipment, and inverters are operating, electrical noise can cause serial communication to suddenly hang. Instead of inexpensive consumer adapters, I selected an industrial-grade USB-serial converter with a reliable FTDI chipset to ensure a stable communication path.
Specification analysis of telegram (frame) data format
In addition to ensuring consistency in baud rate (communication speed), data length (7/8bit), parity (None/Even/Odd), and stop bits, I meticulously deciphered the ASCII telegram format output from the SP-600.
Start of text control character
STX(0x02), polarity sign, 6-digit weight data, unit, and critically important status flags ("stable / unstable" indicating whether the platform has settled, net / gross weight type, zero point, overload detection), followed by a checksum (BCC) and delimiter (CR/LF).
I deciphered the symbols and bit arrays in the specifications, correctly extracted boundaries (framing) from the received raw byte stream, built validation logic to prevent false readings due to truck sway, and constructed a lightweight relay application to deliver data to the web browser.
The moment the numbers jumped on the screen, and the next "major hurdle"
After persistent trial and error, today we finally proceeded with the final integration and communication test with the actual truck scale.
A large truck drives onto the weighing platform, and the green fluorescent digital characters "58740 kg" illuminate on the indicator panel.
At that moment, on the web screen of my laptop, the gauge jumped with a smooth animation, and the same value "58,740 kg" was rendered in real-time. The indicator at the edge of the screen lit up with "Weight Stable / Measurement Complete," and the data synchronization process to the cloud infrastructure in the background completed flawlessly.
"Yes, it's connected!"
I instinctively clenched my fist on site.
It's completely different from cloud systems exchanging JSON;**this is the tangible sensation of a physical weight on an iron mass on the other side, breathing as pixels in a browser through wiring, and being drawn up into the cloud.**It's a definite sense of accomplishment.
Having cleared all physical verifications that spanned two to three months, from this point on, we can rapidly bring the project to the brink of completion by focusing solely on developing the WebUI and business logic at our desks (in our own office or development environment).
However, that's not the end of it. After the system is assembled, the biggest hurdle awaits: "on-site integration and comprehensive testing," which means returning to the weighing station. Can the system withstand real-world conditions where trucks constantly enter and exit within the actual business flow, and on-site operators use it? I felt a significant mountain had been overcome in preparation for the next challenge.
The Reality of On-Site Development: Unstable Mobile Communication and the Limits of "Cloud AI Dependence"
However, during this verification period, I strongly realized something as much as the technical achievement. That is "the harshness of the development environment in severe on-site conditions."
In on-site situations like weighing facilities or outdoor plants, internal Wi-Fi or wired LAN are often not available. Consequently, smartphone tethering or 4G/5G communication via mobile routers become essential.
However, radio waves become extremely unstable inside steel-framed buildings or in remote areas of the site.
My recent development style has become accustomed to rapidly generating and refactoring code and brainstorming specifications in close collaboration with cloud AI agents like Claude and Gemini.
However, in the low-bandwidth, high-latency communication environment of the field, that premise crumbles. Sending prompts to AI would time out, responses wouldn't come back for several minutes, or work would be interrupted by communication disconnections. For the past few days, I've been facing the screen with intense stress due to communication delays and instability.
The fragility of modern AI development environments, which assume "constant, blazing-fast internet connectivity," was starkly exposed at the on-site weighing station.
Rethinking the On-Site Development Environment: The Desire for "Local LLMs" as a Weapon
Having experienced such gritty on-site troubleshooting, what I truly desire from the bottom of my heart now is "a local LLM with sufficient performance and a laptop that can run it comfortably."
A local AI environment that can instantly infer code parsers, look up serial communication error codes, and immediately suggest shell script fixes on my machine, even in completely offline environments where the internet is cut off, or in on-site locations where latency jumps tenfold.
No matter how clean the code written in the protected environment of an office or home fiber optic connection, there are moments when it's useless at a client's site. The real job of an engineer driving on-site DX is to carry a laptop into a muddy, oil-smelling site and quickly fix and run the system right there.
That's why I strongly feel it's essential to optimize the on-site development environment to be more robust and autonomous.
It was a fruitful day, filled with a sense of accomplishment from completing the physical verification, and also marking a new challenge: how to update my "on-site toolkit" as an engineer.