Author Archives: pgfeldman

Tom DeVito 6.22.2011

Start: 10:40

Arduino Communications:

  • Wrote a sketch to handle the communications and deserialization on the arduino side
  • Everything should work but I need to fix the PC side deserialization which is currently setup as a test method
  • Once I know all the methods work I will put them into a ArduinoCom library to keep the main sketch from getting cluttered
  • sendData may need some stuff added to it.

Notes:

  • It is fine to send the DataElements individually instead of one buffer which is how I thought it had to be done
  • Serial.write needs a uint8_t* to the buffer.  I figured they are both 8 bit pointers so I just casted my char*.

End: 5:30

Have to be somewhere at 6:30 will make up the extra hour and change tomorrow.

Phil 6.22.11

8:00 – 7:00 VISIBILITY

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…..