Author Topic: Digiusb not working - Mac.  (Read 3885 times)

greenglue

  • Newbie
  • *
  • Posts: 7
Digiusb not working - Mac.
« on: August 20, 2013, 04:28:53 am »
Hello!

I can't seem to use the digiusb program with my Digispark when connect to my Mac. Right away it shows ">Error -2 releasing Interface 0" and am unable to do anything.

The digiterm feature which I installed through rubygem works fine and I am wondering if that is the same as digiusb?

Other than that, I love my new Digispark and can't wait to figure out how to stack shields on top of each other!


Michael

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: Digiusb not working - Mac.
« Reply #1 on: August 20, 2013, 10:07:27 pm »
Do the send and receive command line tools that come with it work?

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: Digiusb not working - Mac.
« Reply #2 on: August 20, 2013, 11:37:03 pm »
Glad to hear the rubygem is useful ^_^

greenglue

  • Newbie
  • *
  • Posts: 7
Re: Digiusb not working - Mac.
« Reply #3 on: August 21, 2013, 05:32:09 am »
Do the send and receive command line tools that come with it work?

Yes, just digiusb doesn't work. Is that the same as the rubygem I've installed by Bluebie?

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: Digiusb not working - Mac.
« Reply #4 on: August 22, 2013, 04:07:32 am »
The Digiusb terminal program provided by digistump is quite different. My rubygem implements digiusb communication in pure ruby code. The digiusb ruby gem is actually a library so you can write programs in ruby which can send and recieve bytes from digispark's, and the 'digiterm' program is sort of an example of how to use the library, as well as a useful tool - I made it before digistump had released their version and I'm rather attached to it so I never bothered trying too hard to get digistump ones working on my computers.


The rubygem is it's own thing and isn't mained by or associated with Digistump in any formal way, and isn't included in any of their software. I really like it because in many situations it Just Works. Like when I wanted to use digispark's on raspberry pi's, there were already packages for ruby and everything, so all the ruby code just worked - no fussing about making code more cross platform or anything. Ruby is a wonderful language. I wish I could write programs to run on the digispark in ruby. Maybe arm chips will get cheap enough some day that I can do that. In fact, ruby can already run on the Arduino Due! http://stackoverflow.com/questions/13390432/opinion-could-mruby-run-on-little-embedded-gadgets-arduino-due-teensy-3-0-or/15375996#comment21734621_15375996 So it's only a matter of time :D