Friday, October 22, 2010

Oct.22 Back to project progress blogging

Daily progress will go in blog
... now summary information is being collected in the portable wiki not in blog entries.

Environment changes:
Virtual Boxs (Win7, Ubuntu) and portable Wiki  on different USB devices
Want 4diac/forte also on a fast USB.
(so can document when waiting on VB to start) 
Built hg versions
4diac hg:
  1. hg clone
  2. import into Galileo (modelling tools) Eclipse 
  3. syncronise, test, export to build 4diac-ide
  4. copy into the built 4diac directory:
    • hg template directory
    • typelibrary directory which will be used for default 
    • know where an fbdk is for 4diac-ide preferences
Forte hg on:
  1. laptop C: and H: drives
  2. Alex's PC C: and Q: drives
  • lms set_up shell
  • make all 
    • need to edit make file so only FBs needed are included
    • Lab Nov. 8 Di. Blinky (Flip-Flop) 45 Minutes''' - need tutorial
  • Problems: 
    • cygwin errors when on USB
    • Spaces in directory or filename cause cygwin problems
    • cd to pwd will be removed from lms shell script
Flashed LMS with SAM-BA by downloading Lego Firmware and sending it to Lego
  • VT1 (win98) saw it was an ecos device although no drivers installed
  • Plugged lms into laptop with ecos - had no idea any device was attached.
  • Plugged into laptop (WinVista) nothing!
  • Plugged into Alex's PC (Win98) and nothing at first. Powered on with reset button pushed. Then Sam-ba recognized it.
Noted links in wiki to:
cmake (easier to have makefile configuration per application) - coming to 4diac in Nov. (I hope)
and hg to set up a repository and branches for lms fb palette.


in Virtual Box: Win7
Can LMS be used with standard LMS SW and downloaded from a Virtual Box (VB)?
1.  Lego Mindstorm NXT 2.0 Software is installed in VB (not on host= laptop)
     Goal to program LMS and download program
Did Program the LMS provided RoboCenter >Machines>Color Sorter example

Connected the LMS to the laptop:
  • Host (Vista) reaction:
    • Installed unknown device
    • Couldn't find in device list, but when turned off device list refreshed
  • VB reaction:
    • crashed  
      • when tried to switch back to it in full screen mode. 
      • first a message about needing more memory
    • would not restart - gave error
    • restart of vista system ok
    • after restart: Win7 VB started in safe mode
    • after Win7 restart - able to program again.
  • Finish program - save after every step
    • Just like it did 2 years ago when I first used LMS - the UI is very, very slow and you can see everything. In this case the motor blocks at the end. 
    • Finished - but not tested
  • Will want to compare to what event driven program would look like.
Snapshot of VB
  • Connected LMS to VB (check under USB devices)
  • It kept going on and off
  • Finally managed to start download while it was detectect
  • And ColorSorter.rbt downloaded from VB on to the LMS!!!
  • (details: lms ACIN = USB Devices> unknown device 0694:002)

No comments:

Post a Comment