Author Topic: DigiUSB monitor issue on RaspPi  (Read 2915 times)

barbudor

  • Newbie
  • *
  • Posts: 9
DigiUSB monitor issue on RaspPi
« on: June 01, 2014, 05:52:39 am »
Hello

I am trying to use Digispark & DigiUSB with my RasPi running on an up-to-date raspian.

I've successfully uploaded a blink with digiusb sketch (see attachment) from my Arduino IDE on Win7.
It works fine with monitor.exe on the PC (see screenshot).


No I switch the spark to the RPi where I've been able to compile successfully the "monitor" tool (digiusb.cpp). Spark gets enumerated fine.
But when running digiusb, the display gets wrong as I see a bunch of strange character to be displayed on the input line (see other screenshot).


I get similar behavior whereas I run digiusb in Putty, MobaXterm (ssh terminal) or LXterm.

I have no idea if the problem is more related with curses/term settings or with USB communication.

Any idea where I could look ?

Thanks in advance.

« Last Edit: June 01, 2014, 05:54:39 am by barbudor »

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: DigiUSB monitor issue on RaspPi
« Reply #1 on: June 02, 2014, 01:06:37 am »
You could try installing ruby 2.0 or 2.1 and the digiusb gem - it comes with a digiusb terminal emulator which I know for sure works on raspbian, as well as a ruby library you can use to access a digiusb device just like you would a serial device.

barbudor

  • Newbie
  • *
  • Posts: 9
Re: DigiUSB monitor issue on RaspPi
« Reply #2 on: June 02, 2014, 11:01:08 am »
Hi Bluebie

Thansk for your answer but what is "digiusb gem" ?
I can't see anything like this in the raspian repository.
Where should I get it ?

Is that a digiusb terminal written in Ruby ?

For sure I will try this but I really would like to understand why the digiusb terminal I compiled doesn't work. Did I made a mistake in the compilation ? a problem when configuring the terminal ?
Also because at some point I may have to write my own C/C++ code that will talk to the Spark so I want to understand how to make it work.
I already tried to simplify the code to remove ncurses and just display the messages from the Spark, but nothing happen. Need to digg further.

Cheers

barbudor

dougal

  • Sr. Member
  • ****
  • Posts: 289
Re: DigiUSB monitor issue on RaspPi
« Reply #3 on: June 05, 2014, 06:32:54 pm »
Install ruby on your rpi with apt-get, then run 'gem install digiusb'.