Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i need to do a smart device application, where a smart device should be connected to a weighing machine and reads the weight from the machine.
please can anyone tell me how to do this application in c#.
Is it possible to read weights from the weighing machine using a smart device.

Actually we had a PDA(Unitech PDA) it is having USB port and
a weighing machine it is also having USB port.
So the PDA must be connected to weighing machine(SMART WEIGHING Machine) using usb port.
PDA should read the weights from weighing machine.
Posted
Updated 25-Jun-10 20:32pm
v2

What do you consider a smart device? A PDA, a cell phone, a credit card reader? Or are you planning to use a PC or laptop for the application?

Of the very few weighing machines I've used, only the most expensive models allow access to a remote device, and all of those use RS232 serial communications. Although we tend to consider RS232 a dead horse around here, it is still very much alive and well in industrial applications, along with its cousins RS-485 and -422. To access these devices, look into the .Net Framework classes for Serial ports. Though some details will vary among the standards, they all operate in similar ways.

Modern devices are gradually switching to USB connections, another serial communications standard. In many cases you can still use the venerable serial port, along with an inexpensive serial-to-USB cable.

This sounds like an interesting problem. Please post more details about the specific devices you want to connect and you'll likely get many more responses!
 
Share this answer
 
Comments
balu... 26-Jun-10 2:33am    
Actually we had a PDA(Unitech PDA) it is having USB port and
a weighing machine it is also having USB port.
So the PDA must be connected to weighing machine(SMART WEIGHING Machine) using usb port.
PDA should read the weights from weighing machine.
Good! Now check the websites for the PDA and the weighing machine - look for a section for developers. A lot of manufacturers now offer downloads of drivers and APIs for others to use to get the most use from their products. If they have a developer group, join it (if it's free). If you're a student and they ask hard questions about your employment, make something up. They never check that stuff, and if they did, students would never learn anything useful.

Some of them even offer a development kit with tons of source code you can steal reuse. Grab it if they offer one.

You should be able to grab (from the weighing machine company) either a manual of commands to use to retrieve data, or a memory map for stored data, if they're using MODBUS or DNP for storage. How you proceed will depend on what information is available. From Unitech you should get at least a driver to talk through the USB port, or a manual on how to use the built-in driver to communicate with the outside world.

Once you have the information you need from both sources, you can begin development.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900