B4J Question B4J and B4A Project - desire your advise...

Harris

Expert
Licensed User
Longtime User
My client records the Gross / Tare = Net weight of the products they haul (Zinc / Lead) from the mine site to the Port storage shed (52 miles - one way).
They need to replace the old scale software (Win XP - DOS based) with a new creation. I have been tasked - using my on-board solution mounted in their trucks.

Process:
a) Load at mine
b) Travel to Scale (1 km) - get gross weight.
c) Travel to Port - Un-Load.
d) Return to mine scale - get Tare weight
e) Record gross and tare for net. Tracks driver and fleet productivity for each day / period.

The scale controller is continuously streaming the current weight on the scale (even if 0) to Com1 (of controller).
I will install (attach) this product (RS232 to Ethernet converter) to the controller serial port.
http://www.usriot.com/p/rs232-to-ethernet-converters/

Now What?

This tutorial provides me with some clues as how to accomplish:
https://www.b4x.com/android/forum/threads/network-asyncstreams-b4xserializator.79540/

I need to get the data stream (weight - which is standard ASCII) from the ethernet device into my android app (B4A).

This diagram shows what I propose - but I think you may have a better way???

scaleproj.jpg

Once I have the weight, a record is created comprised of other data on this input screen and sent to the server via RDC.

Screenshot_2017-11-26-20-26-20.png


How do I collect and store the weight data so it is available for display and inclusion in the record? Get it locally from the AP or update the server and fetch it from there? What would you do - and how?

Device app and server tables (for the load record) are in place and working. I just need to get weight stream from somewhere...

Thanks
 
Top