I’m looking for some advice for an application I currently developing. I’ll try to keep this as brief as possible so if additional info is need just let me know.
I’m developing an Winforms based event tracking system using VB.Net (VS 2008 Pro). The application collects data via serial bar code scanners and stores this data within a MS SQL Express db located on the same Windows XP Pro workstation that the application is installed on. When the application receives the formatted string of data it checks the db table and sends a reply back to the device indicating whether the data is a duplicate. I have written a PortManager class to handle the serial based devices and this functionality is working well.
I have now been asked to incorporate a new type of collection device into the system. The new device is running embedded Linux and uses TCP\IP (POE) rather than serial communication. The device manufacture has assured me he can provide a string from the devices integrated scanner in the same format as my serial based devices.
If possible, I would like to utilize the current application and just add the ability to use the TCP\IP devices to it. I was thinking it might be possible to just add a new class (similar to my Port Manager class) to handle the TCP\IP based devices.
I’m really at a loss as to the best way to approach this. I’m just not that familiar with collecting data from a Winforms application using a TCP\IP based device.
Any advice on the best approach and/or sample code for communicating to a Winforms app via TCP\IP would be greatly appreciated.
Thank you for any help you might be able to provide!