Category Archives: Projects

Tom DeVito 10.29.2011

Start: 10:00

  • Fixed a problem with PC receive method.
  • Fixed the deserialization method.
  • Single pass works both directions.
  • Found a problem with the states that was causing it not to loop properly.
  • Changing the code to receive sensor data and have the pc respond with commands to the arduino based on the data.
  • Commands will light 5 leds based on the pressure of the sensor.

End: 6:30

Tom DeVito 6.28.2011

Start: 10:30

  • Add a method to get the total size of the data element with the data so it could be loaded into the buffer easier
  • Was importing the size into the buffer which was causing the deserialization to not work correctly on the arduino side.
  • Arduino side is able to get data from the wire.
  • PC recieve doesn’t seem to be working correctly for DataElements

end: 6:30

Tom DeVito 10.24.2011

Start: 10:30

  • Continued writing test application
  • Tested it but its not working.  Wire lights light up but the data isn’t going to the right place.

End: 2:30

Left early to go on a camping trip.

Tom DeVito 6.23.2011

Start: 10:30

  • Edited the de-serialize method on the pc side so it should work with wire data.
  • Changed the size to be type char for now so that I didn’t have to worry about it being a 2 byte integer
  • Changed how receive data worked
  • Started writing a test application to send commands to the arduino and have them echoed back
  • Added states to the pc test application

End: 7:30

Dong Shin 06.29.11

  • thought the save problem in Visibility Scripting had gone away magically…
  • found a bug in storeScript method in ScriptObject.java in VisibilityScriptingServer
    • added try – catch for Integer.parseInt
    • updated sqlStr for intervalMinutes

Dong Shin 06.28.2011

  • revisiting Scripting
  • projects_under_budget.py can now be saved…. no more errors
  • questions
    • What projects are under #% under budget?
    • What managers/Financial people have project > 10%?
    • What projects are overdue?
  • reworking project_under_budget.py to retrieve the data

    Phil 6.23.11

    7:30 – 5:00 VISIBILITY

    • I’ve reinstalled Ubuntu 10.10 after all of yesterday’s (failed) efforts. Trying FreeNX, following the directions here.
      • Installed openSSH
      • apt-get install freenx took *forever*. I think it installs gnome…
      • Might need this later – we’ll see.
      • KDE didn’t work, but GNOME did! Looks nice, and the server required no addition of the desktop outside of the basic install. However, it seems to have limited functionality. For example, I can’t launch a terminal window and the ‘Accessories’ menu is not there.
      • Going to try installing the standard ubuntu desktop (i.e. apt-get install ubuntu_desktop. Well, another long install, but things work quite nicely now.
      • Installed Eclipse (New version – Indigo!). Needs Java
      • Installed Java
    • Worked on the server some more. Sent Jeff an email with a link to a page that show how to set up the interface.
    • Talked to Vernon about my login problems. He thinks that it’s the result of a reorg they are going through. Still no luck with my SSL port.Testing the new PPM. It appears to still be missing the capability of setting it so that a user with a particular role is only able to see projects that they are associated with (as a Program Manager, Financial Analyst or POC(?). Added as bug 6097.

    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

    Phil 6.20.11

    7:30 – 4:30 VISIBILITY