austinbv/dino

Program stops on board att

Closed this issue · 9 comments

I installed Dino yesterday and I'm having problems trying to execute the simple blinking program.
I realized that the program 'gets stuck' on the board = Dino::Board.new(Dino::TxRx::Serial.new)line.
(I also tried board = Dino::Board.new(Dino::TxRx.new))

I kept regenerating and reuploading the sketches and a few minutes ago I got the Board Not Found error. Then I reinstalled Dino and I'm back to the same situation: the program is running forever and is not logging a thing.

Which arduino board and what OS? And which branch? Master or 0.12?

arduino UNO and windows 7
I got the files from the master branch

Which branch? master simply won't work at all on Windows because of a problem with the serialport gem. You'd need to try 0.12, which I switched to use the rubyserial gem a few days ago. Have not tested on Windows yet, but it should work.

Make sure to compile and re-upload the sketch from the source in 0.12.

I replaced the files with the 0.12 branch files, but now I'm getting these errors on the require 'dino' line

dino_err

Run bundle install

the bundle is now complete and the require 'dino' line does not log any errors, but the board = Dino::Board.new(Dino::TxRx.new) now log these:

dino_err

Ruby's still finding the old version (master branch), you installed via rubygems. 0.11.2 and 0.12.0 are not compatible. Remove the old one by running gem uninstall dino. Remove everything.

You can install 0.12 into your system by building it and then installing. In the source directory for 0.12 run:
gem build dino.gemspec
gem install dino-0.12.0.gem

I succesfully ran the 3 lines you told me to, but I'm getting errors on dino and dino generate-sketch serial

dino_err

I figured I should have deleted even more stuff, so I just reinstalled Ruby then built dino-0.12 and I'm getting the exact same error log

Check if file C:/Ruby193/lib/ruby/gems/1.9.1/gems/dino-0.12.0/lib/dino_cli.rb exists. It's saying it can't find the file that should be at that path.

I tried building the gem from source in Ruby 1.9.3 under windows XP and couldn't recreate your error.