Mettler Toledo - weighing scale / web app integration

Posted on 2006-05-10
Last Modified: 2012-06-27
I have a mettler toledo scale that reads the weight for fedex ups applications. I want to make it write back the weight to a input box on a web application. How do i go about this? The scale i am using uses a serial port. How do i go about integrating the scale with the web application. I do not want the users to be entering the weight manually. As it defeats the purpose of reducing work for people weighing packages. In the ideal situtation, a user places weight on the scale and the ystem reads it directly on the weight field in the web app? Anyone had experience doing something similar to this?

Question by:adobhal
    LVL 87

    Expert Comment

    Get into touch with mettler or visit their site. I'm sure you can download many code examples on how to do that.

    Author Comment

    I tried that... they just send me a manual about the scale with no samples :(. i will try again.
    LVL 1

    Accepted Solution


    First of all I'm not expert in serial port programming but here's how I'd go about your problem.  Most likely Mettler aren't going to want to know you, and the best you could get out of them would be a functional description of their serial port communication protocols.  Much easier would be to connect to the scales from the computer using hyperterminal.  You should be able to get a binary or hex readin from the scales.  Compare the value you read off the scales with the output from hyperterminal.  The windows calculator in hex and binary mode is really handy here.  You'll probably find that the scales output a standard 16/32 bit word of which part of it will be the weight itself, and other parts may be things like what mode or units etc.
    From there search the web for serial programming websites and use their help to work out how to readin the values from the serial port using your desired programming language.


    Author Comment


    Even though your answer does not hit the nail on the head. I think you have pointed me in the right direction. No one else seems to more on this rather vague topic so I accept this answer as the best one so far.

    Thank you

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
    The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see:
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    This video discusses moving either the default database or any database to a new volume.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now