Latest Eclipse version available
The latest version of the code is now available here (Code05).The code you will find at the link above is not pretty but it performs most of the important functions to move forward again. (For some reason the event logger, log4j, has stopped working). I've published it warts and all because the purpose of the blog is to document the journey made, and this version of the code marks a big leap.
Review of functionality so far
Basically the functionality is as follows- Listens for incoming data from any connected XBee node
- Records the data and resumes listening
- Waits a set time before writing the data to a file
- The file name is constructed from the date. As the date changes a new file is created.
As with all programming it's not just about writing the code. There is the steep learning curve associated with the development environment and Eclipse is no exception. It's obviously a powerful development environment. NetBeans was considered but primarily Eclipse was chosen for its established popularity and the fact that it is used as part of the Android app development environment. This could be useful in the future.
Next Steps
As said Code05 is rough and ready and just proof of concept. The next step is to include features for configuring the code and controlling it's operation. Importantly the objective is not to get bogged down in creating a user interface. That's always time consuming and probably assumes use of a graphical screen. The requirement is simplicity and really low cost so the intention is to use a configuration file.Luckily Java has this functionality as standard and can be seen in the log4j section of the code.With regards to control i.e. starting and stopping the logging then the intention is to use an XBee node as the user interface. By using one of the inputs it should be possible to signal to the code whether logging should be on or off and a led connected to an output pin could signal if logging is active.And overall the code will be a background process running on a host (Windows PC or Raspberry Pi) requiring minimal or no peripherals. The configuration and log file being stored on a USB memory stick and prepared independently.
Enough for now. Back to work.
No comments:
Post a Comment