Monthly Archives: June 2011

Tom De Vito 6.21.2011

Start: 10:10

ComConsole:

  • Made a library for the ComConsole, ComMgr, and Printable classes
  • ComMgr’s sendData, recieveData, and toString were set to virtual
  • Not sure why but, when I added the libraries to a new project, it complained about the libraries being in RELEASE instead of DEBUG.  They both worked in the other project and I couldn’t find any properties for this.
  • Recompiled them as DEBUG

DataDictionary:

  • Changed all instances of 32-bit integers to 16-bit so the Arduino matches up.
  • Added type parameter and associated methods to DataElement.

Serialization/Deserialization:

  • Figured out how to extract data from the receive buffer.
  • Tested the PC side Serialize and De-serialize.
  • At first I was copying the DataElement out of the buffer but eventually figured out how to read it straight from the buffer
  • Started writting a method for the arduino to Deserialize.

End: 6:30

Dong Shin 06.21.2011

  • PPM bugs found by Phil
    • Available Balance in Financial Status not correct – fixed
    • Remote Objet Fault on Register – fixed
    • Change Password and Hint – added check for empty field
    • Roles not working properly after changing password – fixed
  • uploaded the new PPM

Tom DeVito 6.20.2011

Start: 10:00

C++ Libraries

  • Just use the .h files from the library source.  I thought they had to be special.
  • If you don’t want to change a bunch of properties you can drop the .lib and .h files in the source root directory
  • Phil recommended making  include and lib directories in the source folders to help with organization.
  • On the arduino side it seems you cannot use pre-compiled libraries.  I looked all over and could not find one example of someone who used anything but the source.
  • Put the source into a folder and then drop it into the libraries folder of the arduino IDE.
  • Make sure to disable pre-compiled headers for non-windows libraries.
  • new and delete are not defined properly in the arduino IDE.  The following is needed for these functions to work properly.
#include <stdlib.h> // for malloc and free
void* operator new(size_t size) { return malloc(size); }
void operator delete(void* ptr) { free(ptr); }

Communication:

  • Setup serialization methods to return a char*.
  • Changed getData to have a special case for remote data which it handle differently.

End: 6:30

Mike 6.20.11

  • Created a number of example applications using the Webdesk framework:
    • One which simply loads xml configuration information and connects to a remote logging service defined in that config
    • One which loads several themes and backgrounds and allows the user to change them
    • One which loads a simple application module and adds it to the desktop, the sample application adds children windows as well
  • Added a permissions check system to the SCT document manager application.  Before any user could do anything but now proper permissions and ownership of documents are enforced.  However, any user can view any document for now.
  • Implemented a guest system.  Guests, for the SCT document manager, can only view documents.
  • Created a welcome screen for Webdesk framework.  It displays all available applications from loaded modules and allows quick access to them.  In the future it may also allow quick access to recently viewed items

Phil 6.20.11

7:30 – 4:30 VISIBILITY

Tom DeVito 6.17.2011

Start: 10:00

Creating a Library:

Com Console:

  • Got a bit annoyed with the Library not working so I decided to continue setting up the Com Console for when I have the Data Dictionary in it.
  • Made it so all the data elements of command and response were in a struct and changed the set get methods to work with this.

End: 6:30

6/19/2011 Note: I tried the library again on Sunday.  Its not giving me compiling errors anymore but I haven’t really tested it yet.  I will try to test it tomorrow.

Dong Shin 06.17.2011

  • PPM Chages
    • fixed a bug not saving Financial Status data correctly
    • recalculate the total – skip totals for Initiate, Commit, PM Actuals (duplicates)
    • duplicates (Initiate, Commit, PM Actuals) for Direct Cites grayed out (disabled)

Phil 6.17.11

7:30 – 4:00 VISIBILITY

  • Working on getting VNC or something similar runing on my Linux box
  • Installed VNC server according to the directions here: http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html
  • Have the vnc server and client running, but can’t control the desktop. Could be because I’m logged into the server. Going to install updates, restart, and try without being logged in.
  • Got VNC running without a click of ‘OK’ on the server, but I still have to be logged in.
  • Brian has to fill out a (SPF?) form to get Jeff’s server onto both networks. Looks like we need some additional approval, too.

Tom De Vito 6.16.2011

Start: 10:00

Data Dictionary:

  • Found that you can’t compare char* directly.  First tried strcmp(char* first, char*second) but found this only compares the first char in string.
  • strncmp(char* first, char*second, size)  is the way to go.  Was originally using a defined maximum but Phil told me it would be better to make sure the string length is equal first then set the size to the string length.
  • getData(char* name) implemented
  • deleteItem(char * name) implemented
  • added toString() to print out current contents

Com Console:

  • Cleared all test code
  • Added sendBuffer and recieveBuffer to ComMgr
  • Added toBuffer methods to command, response, and state classes.

End: 6:30

Tom DeVito 6.15.2011

Data Dictionary:

  • Had very strange compiling errors.
  • Moved project to its own solution.  Problem was not resolved.
  • Eventually realized that DataElement.h was missing a ; at the end.
  • Changed addItem and DataElement to have the void* to the data in their parameters/constructor.
  • Changed addItem to return void.

Dong Shin 06.16.2011

  • cleaned up Flex workspace and projects for Flash Builder 4.5 – lot more warning(?)
  • PPM Changes
    • added FY clause in Financial Status to retrieve the matching Funding Request Data
    • fixed total amount calculation – use total from all appropriation in the year
    • reworking the calculation…..

Phil 6.16.11

8:00 – 4:00 VISIBILITY

  • FB 4.5 appears to be happy and integrated. Back to the cloud IDE
  • looking at the jEdit plug-in architecture, which has a nice example (http://www.jedit.org/users-guide/plugin-implement.html).
    • Oh, drat. jEdit can’t work with Web Start: http://www.jedit.org/FAQ/installation.html#id446561. This is due to the plugin architecture (i.e dynamic loading).
    • Eclipse appears to work with Web Start. On the other hand, downloading the Eclipse environment and using remote file access could be a lot less effort, and download time. My concern is that eclipse comes with java compilers, which take up room and slow the download.
    • According to this FAQ (http://wiki.eclipse.org/index.php/TM_and_RSE_FAQ), the best option is to install Eclipse on the server and remote desktop in with a VNC such as NX Server.
    • Set up an Ubuntu box in my office to play with.
  • Nothing going on with our probnlem server, except that more people are noticing that they can’t get their VMs set up either… Bill. D. did give us a nice shout out though 🙂

Tom De Vito 6.14.2011

Arduino to PC Communication:

  • Was able to pass a structure back from the arduino
  • recieveData gets the buffers pointer and writes to the buffer.
  • To make testing easier all this is still done within the ComMgr.

Data Dictionary:

  • Phil helped set up the data dictionary.
  • use strcpy(des, ori) to copy a char*.3
  • Anytime malloc or new is used, remember to free resources.
  • Still not sure how data is put into the data elements.