This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java - TINI board - Timed reading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java - TINI board - Timed reading" Watch "Java - TINI board - Timed reading" New topic
Author

Java - TINI board - Timed reading

Sofiene Hammad
Greenhorn

Joined: Mar 28, 2011
Posts: 9
Hi,
I already posted on this forum, however I'm not sure if I have posted it in the right section.
I'm currently dealing with a TINIm400 module in order to set a sensor->RS232->TINI->Ethernet->PC/Server Communication.
So now that the communication works, I have to improve some things in the code such as :

-Reading the data and sending it must be done each seconds.
-Previously, I have to send something to the sensor in order to set it in "sending mode", so basically another thread dedicated to writing on RS232 which is already coded.
-If the data collected is the same as before, it shouldn't be sent, so a basic data filter.

Here is my code, any idea about how could I improve it, especially for timing, this is something I really struggle to set in this code, I don't have any idea of the function to use...?



In addition to that, if someone already worked on a similar project, it would be a great pleasure for me to share some informations about the device and its features.

Thanks

Regards

Sofiene HAMMAD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java - TINI board - Timed reading
 
Similar Threads
TINIm400 timed read/write and thread management
Problem "Exception in thread "main" java.lang"
TINIm400 module and timed reading
error starting websphere application server v6.1
IO Exception :Connection timed out