This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
here wrapper class i mean is, without using any c or c# i.e., JNI in java code. I tried using javax.comm for reading serial port,
is always returning "False". But COM3 port is open and its connecting to weigh scale and data is keep polling in that port. I have no idea, whether some prerequesite is required or anything is wrong in the code.
Probably not going to be much help here as I'm just Googling around a bit, which I assume you have done plenty of before coming here for help anyway.
Only snip I could find was that one person encountered this problem where they were getting an empty Enumeration because they were using javax.comm API v3 on a Windows environment which is not supported. They resolved their issue by using v2 instead.
What is connecting? What is polling? You say your application is not working but then you say you're receiving data on the port? This makes no sense at all.
Assuming that you have some other application connecting to your Scale then perhaps it is because that thing is hogging the Comm Port that your Java application is unable to get a handle to it. This is just a wild guess on my part.
Like Ulf says, your question is quite vague and you're not giving us much to go an at all. If you want to get more focussed assistance then you need to provide a more focussed question.
It's been nearly a decade since I used that software, back in the days when computers still came with COM ports installed by default. I vaguely remember that if your code couldn't find any comm ports, that was because it wasn't installed correctly. The installation process was very strange, with different components being loaded into different directories, and it was easy to get it wrong. So go back and review the installation instructions and make sure you followed them exactly.
Since the scale is connected to a Windows platform, you can easily use the Device Manager to check if the COM port is registered by the operating system, then use a terminal application (such as PuTTY) to make a connection.
Joined: Oct 21, 2008
Thanks for all response. When my application doesn't able to connect to the comm port, I used the hyperterminal(set by vendor to check data) to check whether data is being polled to com port.
Issue got solved by adding dll and steps followed in this website,http://edn.embarcadero.com/article/31915. Thanks for all, for your wonderful support and time.