Fetch scale data via Lantronix, display it in a video feed, and create a bookmark in any VMS (Milestone XProtect, AXIS Camera Station, etc.)
List of supplies & Specification
About the project
We have prepared an integration demonstrating how data can be collected from a Lantronix industrial external device server and displayed as a graphics overlay, directly in the captured footage of the camera, using only Camstreamer in-camera applications.
At the same time, data can be sent as a generic event to a Milestone VMS.
How does it work?
Any device with RS232/RS422/RS485 serial port can be connected to the Lantronix UDS2100 server. From that point on it is accessible via the local LAN. In our case, we connected a digital scale G&G E6000YA in this way.
The other part is the AXIS M1135 network camera, where we installed 2 in-camera apps - the first isthe CamScripter App, which is an application directly in the camera that allows you to run custom applications.
We also prepared a micro-app for CamScripter App in Node.js that can read the current measured weight from the scale (connected to the Lantronix server) directly from the camera, in real-time.
This data is then sent by the micro-app to 2 destinations, the first being the CamOverlay App and the second, the Milestone VMS, where bookmarks are created, enabling easy filter and search criteria in the recordings.
This is a very simple solution to display external data directly in the video - this is practical for many reasons - visual control at the monitoring center, data is sent directly as part of the video image, everything is processed directly in the camera, so no server or other equipment is needed.
This demonstrates that you can display virtually any data directly in the video and even work with it - the script that handles everything is very simple and we can customize it for you.
This solution for Lantronix UDS2100, digital scale G&G E6000YA and Milestone is a ready-made micro application and is available at CamStreamer GitHub for your use.
List of supplies
AXIS M1135 network camera
(can be any compatible AXIS camera with an ARTPEC-5/6/7/8 processor)
Digital scale G&G E6000YA
- 7 weighing units: vg,ct,ozt, oz, GN, dwt, lb
- Counting function(Reference Num:1/10/20/50/100)
- Full range tare
- Automatic calibration
- AC or battery power supply
- RS232 interface
- LCD display with white backlight
- Dimensions 290×200×82 mm
About Lantronix UDS2100
Lantronix is a global provider of intelligent hardware and other hardware and services. External device server UDS2100 enables users to connect, manage and control just about any piece of equipment with a serial port from virtually anywhere over Ethernet or the Internet.
Thanks to CamStreamer apps, in-camera ACAP apps for AXIS network cameras, you can fetch data from any device connected to this device server what is described here, in this case study.
Lantronix Scale reader micro-app for CamScripter App
(micro-app which can fetch data from Lantronix and send them to CamOverlay App and as generic events to Milestone VMS)
- CamScripter App allows to running of micro apps (Node.js script) inside the Axis camera and fetching data from an external device (such as scales and thermometers)
- The ready-made micro app (Node.js script) tailored for this specific USB thermometer is available for free – just download the micro-app from GitHub
- CamOverlay App is an in-camera app that generates dynamic graphic overlays and displays them directly in Axis camera’s video stream – in this case, with real-time data from the thermometer
- MSRP $498
About Milestone XProtect® VMS
Milestone XProtect® is the industry-leading video management software (VMS) designed for installations of all shapes and sizes.
Thanks to Camstreamer‘s in-camera ACAP apps, for Axis network cameras, you can send a string to trigger generic events like a bookmark in the Milestone VMS. A real example is described in this case study.
Tutorial on how to setup electronic scale
Setup in the Milestone VMS
Milestone XProtect Management Client
1) Tools > Options > Generic Events
Here you need to set the endpoint to receive string from external events and allowed IP addresses that can send events to Milestone.
2) Rules and Events > Generic Events
Here it is necessary to set the string that Milestone will receive and parse.
3) Rules and Events > Rules
Here it is necessary to set a rule that says what should happen if an event is received from the generic event "Scale1", in our case it is the creation of a bookmark in the record.
Milestone XProtext Smart Client
Search > Bookmarks