• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Java - TINI board - Timed reading

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bring out your dead! Or a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic