Giter Site home page Giter Site logo

hybridgroup / gort Goto Github PK

View Code? Open in Web Editor NEW
435.0 24.0 51.0 1.13 MB

Command Line Interface (CLI) for RobotOps

Home Page: http://gort.io/

License: Other

Makefile 0.96% Go 80.23% Arduino 18.80%
arduino particle serial-ports bluetooth bluetooth-low-energy firmware robotics drone iot

gort's Introduction

Gort - Command Line Interface For RobotOps

GitHub release Build Status Go Report Card License

Gort (http://gort.io) is a Command Line Toolkit for RobotOps. Gort provides tools to scan for connected devices, upload firmware, and more.

Gort is written in the Go programming language (http://golang.org) for maximum speed and portability.

Want to use Golang to program your robots? Check out our open source robotics framework Gobot (http://gobot.io).

Want to use Javascript on Robots? Check out Cylon.js (http://cylonjs.com)

Want to use Ruby on robots? Check out Artoo (http://artoo.io)

Getting Started

We now have precompiled binaries! You can also build from source.

The Gort CLI provides many useful features on many hardware platforms, and has no other dependencies. You install Gort separately from any framework, which means you can use it to program Arduinos with the Firmata firmware also compatible with Cylon.js, Gobot, Artoo, & many other libraries.

Download

Just want to download a binary for OSX, Windows, and Linux? Go to our web site at http://gort.io/documentation/getting_started/downloads/ for the latest release.

Using Homebrew on OSX? You can install using:

brew install hybridgroup/tools/gort

How To Use

$ ./gort
NAME:
   gort - Command Line Utility for RobotOps

USAGE:
   gort [global options] command [command options] [arguments...]

VERSION:
   0.8.0

COMMANDS:
     scan       Scan for connected devices on Serial, USB, or Bluetooth ports
     bluetooth  Connect & disconnect bluetooth devices.
     arduino    Install avrdude, and upload HEX files to your Arduino
     particle   Upload sketches to your Particle Photon or Electron
     digispark  Configure your Digispark microcontroller
     microbit   Install and upload firmware to your BBC Microbit
     crazyflie  Configure your Crazyflie
     klaatu     barada nikto
     help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

Scan for connected serial devices:

$ gort scan serial
[    0.000000] console [tty0] enabled

More help coming soon...

Building

To install the required dependencies to build gort, run:

make deps

You build the assets into the project like this:

make assets

Then build the binary with:

make build

Compiled binaries will now be placed in build/<VERSION>/

Release

When you are ready, run:

make release

For OSX users, you will also need to update the homebrew repo, located at https://github.com/hybridgroup/homebrew-tools

To obtain the needed SHA values to update homebrew recipe, run:

make homebrew

Contributing

For our contribution guidelines, please go to https://github.com/hybridgroup/gort/blob/master/CONTRIBUTING.md .

Licenses

Gort is copyright (c) 2014-2017 The Hybrid Group. Licensed under the Apache 2.0 license.

Firmata is copyright (c) 2006-2008 Hans-Christoph Steiner. Licensed under GNU Lesser General Public License. All rights reserved.

Rapiro is copyright (c) 2013-2014 Shota Ishiwatari. Licensed under the Creative Commons - Public Domain Dedication License.

Tinker-Servo is copyright (c) 2014-2017 Particle, Scott Beasley. Licensed under the GNU General Public License.

gort's People

Contributors

deadprogram avatar edgarsilva avatar erkkah avatar hunterboerner avatar rafmagana avatar stewart avatar zankich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gort's Issues

Gort aborts on Arduino install

When I run gort arduino install it immediately aborts.
I am running Ubuntu 13.10

$ gort arduino install
Attempting to install avrdude with apt-get.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libftdi1
Suggested packages:
  avrdude-doc
The following NEW packages will be installed:
  avrdude libftdi1
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 259 kB of archives.
After this operation, 1,064 kB of additional disk space will be used.
Do you want to continue [Y/n]? Abort.
$ gort --version
gort version 0.2.1

gort arduino upload firmata fails

When i try to run gort arduino upload firmata /dev/ttyACM0 on antergos i get this error message:

signal: floating point exception (core dumped)

i use an arduino uno r3 smd

avrdude CLI parameters for different Arduino products

I'm not a Go developer, but a quick look at the source tells me gort Arduino support is limited to the UNO or other boards with the ATmega328 chip. This covers the popular basic boards, but leaves out everything else.

The avrdude options needed to make this work are -c, which tells avrdude what programmer to use and -p, which indicates the part number of the chip on the board.

It would be great if there were an option in gort like -board mega2560, which would let the user refer to the board by product name rather than the chip. gort would parse that option and then give the correct parameters to avrdude.

To that end, I'm posting all the combinations I know to be working here. This covers basically the entire product line from the Diecimila (2007) onward, except for the Due, which is ARM-based and requires bossac instead of avrdude. That's another issue.

Additionally the -b option should be left out. avrdude varies the default baud based on the chip, and I've yet to see an error solved by explicitly setting it.

The Parameters

UNO / Ethernet / Nano v3.0 / Mini v5 / Late Duemilanove / Fio / Any with ATmega328/328p chip:

-c arduino -p m328p

Nano v2.3 or earlier / Mini v4 or earlier aka Stamp / Early Duemilanove / Diecimila / Any with ATmega168 chip:

-c arduino -p m168

Mega aka Mega1280 (Old Model) / Any with ATmega1280 chip:

-c arduino -p m1280

Mega2560 (Current Model) / Mega ADK / Any with ATmega2560 chip:

-c stk500v2 -p m2560

Leonardo / Robot / Esplora / Micro / Yun / Any with ATmega32u4 chip:

-c avr109 -p atmega32u4

Baud Reset for 32u4-based Boards

Boards based on the 32u4 require the system to set the baud rate to 1200 prior to running avrdude.

On OS X: stty -f /dev/tty.whatever 1200
On Linux: stty -F /dev/tty.whatever 1200
Not sure how to do this on Windows.

This is an odd quirk in that, once you run the command once, avrdude will run successfully on that device until the machine reboots (even across disconnects and reconnects). However, it does no harm to run it prior to each call to avrdude, which is what I have done in the past.

Possible Implementation

That's a lot of boards, and there's overlap between the m168 and m328 for the older products.

Since m328p is the most popular, and m168 is no longer built into new boards, gort should default to the m328, requiring users of older boards with a m168, to know this and specify so. All other boards would need to be specified explicitly.

The gort options could look something like this:

-board m328 | uno | nano | mini | ethernet | fio (default option)
-board m168 | diecimila | stamp
-board mega | mega1280
-board mega2560 | megaADK
-board leonardo | robot | micro | esplora

All the parameter values on a specific line would produce the exact same output parameters for avrdude, corresponding with my findings above, but could be accessed by different names for ease of use.

Lastly, the Mini and Stamp have never had USB ports built in. They were intended to be programmed via a USB-to-serial adapter, then disconnected and run standalone. Since this doesn't fit with Artoo/Cylon/Gobot, it's debatable whether they should be included. But if gort is designed to be a general-purpose flashing utility, I think they should.

Missing library from Gort OS X build

Using the latest build of Gort (0.3.0) on OS X (10.9.5) with Go version 1.4.2. Gort is missing "Current"

~ $ go version
go version go1.4.2 darwin/amd64
~ $ gort -v
gort version 0.3.0
~ $ gort dronedrop install
2015/02/28 14:17:56 Pushing dronedrop...
2015/02/28 14:17:56 user: Current not implemented on darwin/amd64

SHA-256 mismatch when installing with homebrew

See output below:

brew install hybridgroup/tools/gort
Updating Homebrew...
==> Installing gort from hybridgroup/tools
==> Downloading https://github.com/hybridgroup/gort/releases/download/v0.9.0/gort_0.9.0_darwin_amd64.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/18998338/33feaf00-6695-11e9-8fc1-c8c409c67a1e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200822%2Fus-east
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: 744fb23c83b1c5ac8612f08c3c9f791ad12a2bef0a9d0b79eb695da6a124025b
Actual: 05b1baacdc0b4b6202a01b0e622d81ba60d2ed1963e6f14563f8caafc4ad8460
Archive: /Users/xxxxxx/Library/Caches/Homebrew/downloads/87962709ef2f694dbd2349834d7d1ec4bba1c2a036bb16a4ee723eda0d067e24--gort_0.9.0_darwin_amd64.zip
To retry an incomplete download, remove the file above.

After deleting file, same error.

Mindwave Mobile on Ubuntu 16.04 throws error when trying to connect

Hi - I'm connecting a Mindwave Mobile to Ubuntu via a bluetooth dongle. I switch the device to 'on/pair', and then run:

hcitool scan
expected output:
Scanning ...
20:68:9D:4C:0D:B7 MindWave Mobile

gort scan bluetooth
expected output:
Scanning ...
20:68:9D:4C:0D:B7 MindWave Mobile

gort bluetooth connect 20:68:9D:4C:0D:B7
error output:
2016/09/27 23:40:52 exec: "bluez-test-serial": executable file not found in $PATH

I've looked around a bit and haven't discovered the apt repo for that tool. Any suggestions?

Cheers,
Robert

wifi

I am wondering about if I can update a robot remotely.

If the robot has a WiFi chip, and its connected to a land network, then I can forward updates to it from a computer on the network.

If I have to only use Bluetooth, that the local land computer can forward over Bluetooth to it.

Any ideas / suggestions.

Unable to upload firmata to arduino duemilanove

I have a arduino duemilanove, and im unable to upload firmata to the board using gort on my OSX machine . Im however able to upload firmata to the board using the arduino ide.
I tried doing gort arduino upload firmata /dev/cu.usbserial-A700fmBa and also gort arduino upload firmata /dev/tty.usbserial-A700fmBa.In both the cases i get the error avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x86.
Any way to fix this ?

Thanks.

Got a SHA256 mismatch Error when I try 'brew install hybridgroup/tools/gort'

Hi ! I've got an error on Mac OS X High Sierra 10.13.6 when I tried to install gort with brew:

Error: An exception occurred within a child process:
  ChecksumMismatchError: SHA256 mismatch
Expected: 744fb23c83b1c5ac8612f08c3c9f791ad12a2bef0a9d0b79eb695da6a124025b
  Actual: 05b1baacdc0b4b6202a01b0e622d81ba60d2ed1963e6f14563f8caafc4ad8460
 Archive: /Users/roy/Library/Caches/Homebrew/downloads/87962709ef2f694dbd2349834d7d1ec4bba1c2a036bb16a4ee723eda0d067e24--gort_0.9.0_darwin_amd64.zip
To retry an incomplete download, remove the file above.

I have read about issue #51;
I think maybe there is the same problem;

Look forward to your reply!

gort scan serial - not returning anything on Windows 7

I've got an Arduino Uno plugged into my PC running Win7 Pro 64 bit. Arduino IDE recognises it on COM3. However gort scan serial returns nothing.

C:\Windows\system32>gort scan serial
Connected serialport devices:

Running the following works

gort arduino upload fermata COM3
And then running node cylone scripts (e.g. led blink) works.

Any ideas?

Thanks

gort arduino firmata relay on by default

After I uploaded the firmata firmware to my UNO, everytime I power it up, the normally opened relay always got turned on immidiately.

How can I make it so it won't turned on immidiately (off by default)? Should I make custom firmata firmware? If so, how do I do that?

Thanks.

Failed to install arduino in Windows.

Hello
I was running Gort from windows, and I get the following error when I want to do:
. \ gort .exe arduino install.

Error:

Downloading https://s3.amazonaws.com/gort-io/support/WinAVR-20100110-install.exe to WinAVR-20100110-install.exe
243 bytes downloaded.
fork/exec "path"/WinAVR-20100110-install.exe: The file or directory is corrupted and unreadable.

and I get the following error of the AVR installer that is trying to install. I understand that this is necessary in order to load Firmata on Arduino devices. @deadprogram

panic on bluetooth pair or connect

$ ./gort scan bluetooth
Scanning ...
    74:E5:43:9C:66:84   MindWave Mobile
$ ./gort bluetooth pair 74:E5:43:9C:66:84
panic: runtime error: index out of range

goroutine 16 [running]:
runtime.panic(0x828e640, 0x841f5fc)
    /home/adrian/go/go_1.3.1/src/pkg/runtime/panic.c:279 +0xe9
github.com/hybridgroup/gort/commands.func·004(0x18604360)
    /home/adrian/development/gopath/src/github.com/hybridgroup/gort/commands/bluetooth.go:48 +0xaa7
github.com/codegangsta/cli.Command.Run(0x82bb318, 0x9, 0x0, 0x0, 0x82fcb48, 0x2c, 0x0, 0x0, 0x0, 0x0, ...)
    /home/adrian/development/gopath/src/github.com/codegangsta/cli/command.go:101 +0xac2
github.com/codegangsta/cli.(*App).Run(0x18628930, 0x1860e000, 0x4, 0x4, 0x0, 0x0)
    /home/adrian/development/gopath/src/github.com/codegangsta/cli/app.go:125 +0x7cc
main.main()
    /home/adrian/development/gopath/src/github.com/hybridgroup/gort/gort.go:23 +0x1fb

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/mheap.c:507
runtime.goexit()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]:
bgsweep()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]:
runfinq()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/proc.c:1445

Fedora 20

Limited options when running Gort

I'm trying to run Gort on OSX 10.11 and I'm getting a very limited selection of options, specifically only 'help' and 'version'. When I run gort -V in Terminal I get 0.0.0 which doesn't seem right and gort -h just yields the same options below. What's going on here? I installed Gort with npm and it didn't give me any errors.

Usage: gort [options]

Options:

-h, --help     output usage information
-V, --version  output the version number

gort not detected MAC

When trying to use gort I get following message

Lucjans-MacBook-Air:robots lds$ gort scan serial
-bash: gort: command not found

Is there a way to solve this problem?

gort arduino upload error with missing params

When I run gort arduino upload /dev/cu.usbserial-A800evvq it aborts with an error.

panic: runtime error: index out of range

goroutine 16 [running]:
runtime.panic(0x2f75c0, 0x51f35c)
    /home/adrian/code/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/hybridgroup/gort/commands.func·002(0x2085ee240)
    /home/adrian/code/go/gopath/src/github.com/hybridgroup/gort/commands/arduino.go:90 +0x1996
github.com/codegangsta/cli.Command.Run(0x33d590, 0x7, 0x0, 0x0, 0x3a0090, 0x35, 0x0, 0x0, 0x0, 0x0, ...)
    /home/adrian/code/go/gopath/src/github.com/codegangsta/cli/command.go:101 +0xc6f
github.com/codegangsta/cli.(*App).Run(0x2085ee0c0, 0x2085a6000, 0x4, 0x4, 0x0, 0x0)
    /home/adrian/code/go/gopath/src/github.com/codegangsta/cli/app.go:130 +0x953
main.main()
    /home/adrian/code/go/gopath/src/github.com/hybridgroup/gort/gort.go:25 +0x2b5

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
    /home/adrian/code/go/src/pkg/runtime/mheap.c:507
runtime.goexit()
    /home/adrian/code/go/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]:
bgsweep()
    /home/adrian/code/go/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
    /home/adrian/code/go/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]:
runfinq()
    /home/adrian/code/go/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
    /home/adrian/code/go/src/pkg/runtime/proc.c:1445

I'm using OS X 10.10.5
gort version: 0.3.0 darwin_amd64
avrdude verison: 6.1 (installed via homebrew)
and an Arduino Duemilanove

Since these are my first attempts with gort I'm at a loss.
What is wrong?

Help Installing Gort (Ubuntu 64bits)

I'm installing Gort on Ubuntu 64 bits but I have the following error after installing using the gort_0.3.0_amd64 file:

dpkg: error processing archive /home/nicolas/Descargas/gort_0.3.0_i386.deb (--install):
parsing file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'gort':
blank line in value of field 'Description'

Thanks!!

Documentation: gort digispark install does more than just downloading the software

Hi,

Minor issue.

gort's help text says:

gort digispark install # installs software to upload firmware to Digispark
gort digispark upload [littlewire] # uploads firmware to Digispark

but actually go digispark install does both steps in one: install software to upload firmware to Digispark, AND upload firmware (littlewire) to Digispark.

So the actual behavior is not in line with the help text.

Arduino Mega ADK: Is compatible with Gort?

Hi,

I have problems when I try to upload firmata inside my arduino Mega ADK. When I try to upload firmata to my board, like this (in Linuxmint):

$ sudo gort arduino upload firmata /dev/ttyACM0

It shows the next error message:

avrdude: stk500_recv(): programmer is not responding

When I see this error in Arduino IDE, the solution was change the board in the corresponding menu. But in Gort, how I can change the board type? Or is it simply that Mega ADK is incompatible with Gort? Thanks for your answers. All of them are welcome.

Using Homebrew install gort error in MacOS

~ % brew install hybirdgroup/tools/gort
Updating Homebrew...
==> Tapping hybirdgroup/tools
Cloning into '/usr/local/Homebrew/Library/Taps/hybirdgroup/homebrew-tools'...
remote: Repository not found.
fatal: repository 'https://github.com/hybirdgroup/homebrew-tools/' not found
Error: Failure while executing; git clone https://github.com/hybirdgroup/homebrew-tools /usr/local/Homebrew/Library/Taps/hybirdgroup/homebrew-tools exited with 128.

Homebrew 2.5.8
Homebrew/homebrew-core (git revision 5d7eb; last commit 2020-11-05)

MacOS 10.15.6

It seems like url error while cloning the git repo. I tried to search "hybirdgroup/homebrew-tools" in github, but found nothing.

Can't download .deb packages

I only get something like this, when trying to download any of the .deb packages:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Key>0.6.1/gort_0.6.1_amd64.deb</Key>
<RequestId>A2BE481AA5274077</RequestId>
<HostId>
oOjZGRSPQ5GExI19da3QGjFfPD9zxf6VYyJMarj0nUA7Jdtqd2REtyCAt8wIyumaBKaPelaLw/A=
</HostId>
</Error>

Other downloads work.

may have bricked the microbit

Just checking if I have done this incorrect

$ gort microbit download
$ gort microbit install /Volumes/MICROBIT

I don't seem to have any preloaded routines anymore, and I cant get it into bluetooth pairing mode.

Cannot connect to BB-8 Sphero. Beleive it is a security level issue and/or random address

I am trying to use artoo (ruby library for interfacing with various projects, including Sphero). Their documentation suggests using gort to pair/connect to the device, which (as I understand) should create a /dev/rfcomm0 device for artoo to connect to. Their documentation appears to be out of date (since it tells you to pair, but there doesn't appear to be a pair subcommand anymore). In any case, when I try to simply connect as follows, I get "Cannot create connection. Input/output error":

sudo gort bluetooth connect <ADDR> hci0

I found that using gatttool, I can connect only with I set my address to random and security level to medium.

gatttool -l medium -t random <ADDR> -I

This lets me connect to the BB-8 (although I haven't tried doing more than printing characteristics because I'm not familiar enough with the system), but it doesn't create a /dev/rfcomm0 (or other device) I can point artoo at.

Is there something I'm missing? I assume there currently is no way to set the security level, and I assume it defaults to low. Is that correct? If so, what would it take to support other security levels and/or random addresses?

Uploading hex file does not work for arduino gobot hexfile.

I'm not sure if this is a gort issue or a gobot issue, but trying to upload a compiled example code to my arduino device fails with below output:

> gort arduino upload blinker /dev/ttyACM0

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "blinker"
avrdude: invalid record at line 5991 of "blinker"
avrdude: read from file 'blinker' failed

avrdude done.  Thank you.

2015/02/04 10:33:52 exit status 1

Note that just running the file directly works, but then if I unplug the USB cord from the device, the program stops working.

Error when I try brew install hybridgroup/tools/gort

Hi ! Like what I said in tittle, when I try to install Sort, i've an error on Mac OS X Sierra:

Error: SHA256 mismatch
Expected: be09312d577c477d9720b591044773a8f4f95655c3112a8ab901c5de17fbd4ff
Actual: acc7896f3765fbaea13f2007d87e7914af06d05d681a5ebad4fa22724e560b43
Archive: Users/**hidden**/Library/Caches/Homebrew/gort-0.8.1.zip
To retry an incomplete download, remove the file above.

What can I do for fix that ?

Cheers,

Wrong URL is refenced in Win64 build of gort 0.8.1

When attempting to run a command for gort digispark the zip is attempted to be downloaded from littlewire.cc rather than S3 mirror. (fix was applied in commit: a29178c)

gort.exe digispark install
Gort lives
Downloading http://littlewire.cc/resources/LittleWirev13Install-Win.zip to LittleWirev13Install-Win.zip
7204 bytes downloaded.
2017/06/13 17:03:48 zip: not a valid zip file

The build I downloaded was referenced on this page http://gort.io/documentation/getting_started/downloads/
and the link was:
https://s3.amazonaws.com/gort-io/0.8.1/gort_0.8.1_windows_amd64.zip

This file's MD5 hash of the build file with this issue is 57484C4009D044DC7A181B85225CE7DB

Can't install firmata using Gort

This command:
sudo gort arduino upload firmata /dev/tty.usbmodem1411

Yields this error:
dyld: Library not loaded: /usr/local/lib/libusb-0.1.4.dylib
Referenced from: /usr/local/bin/avrdude
Reason: image not found
2014/10/16 11:31:15 signal: trace/BPT trap

I've used homebrew to upgrade libusb and avrdude, but it doesn't help. Contents of /usr/local/lib/ are:
dtrace libftdi.a libusb-1.0.a node_modules
libelf.a libftdi.dylib libusb-1.0.dylib pkgconfig
libftdi.1.dylib libusb-1.0.0.dylib locale

Error uploading firmata to arduino

I followed the steps shown here and I got the following error.
Error

Maybe I did something wrong, but in this case there should be a proper error message telling me what I did wrong.

gort arduino upload error uploading Firmata to Intel Edison

I am using OS X 10.10.4, Intel Edison with Arduino breakout, and gort_0.3.0_darwin_amd64. Here is the output received going through this tutorial.

$ gort arduino upload firmata /dev/cu.usbserial-AJ035DL1 
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20

avrdude done.  Thank you.

2015/07/21 15:56:31 exit status 1

I have been able to upload modified Blink sketches using the Arduino IDE. But when I attempted to upload the Standard Firmata sketch from Examples, I received this output:

/Applications/ArduinoEdison.app/Contents/Java/libraries/Firmata/utility/EthernetClientStream.cpp:71:22: error: conversion from 'IPAddress' to 'unsigned int' is ambiguous
   if (this->localip!=localip)

Lastly, using Gort caused the device names for Edison/Arduino breakout to change. The Blink sketches were uploaded using /dev/cu.usbmodem1d113 which changed once Gort was run to /dev/cu.usbserial-AJ035DL1. At this point not even Blink sketches via Arduino IDE upload.

Any insight appreciated.

How to install on OS X?

I downloaded gort 0.3.0 for a 64-bit Mac.

I then run the executable file in the downloaded folder, it opens up a new shell window, and then I get an pop-up warning (in iTerm2) saying:

Short-Lived Session Warning

Compatibility with SparkFun RedBoard

I assume this issue is linked to another issue (#21) that reports the inability to use a different 'style' of Arduino board. I have a bunch of RedBoards by SparkFun (which are Arduino compatible) that I am unable to use gort with in order to upload the Arduino firmata. When I try to run ./gort arduino upload /dev/tty.usbserial-A702MX5M, this is the output I receive:

panic: runtime error: index out of range

goroutine 16 [running]:
runtime.panic(0x2e58a0, 0x4e031c)
    /home/adrian/go/go_1.3.1/src/pkg/runtime/panic.c:279 +0xf5
github.com/hybridgroup/gort/commands.func·002(0x20859e210)
    /home/adrian/development/gopath/src/github.com/hybridgroup/gort/commands/arduino.go:90 +0x1996
github.com/codegangsta/cli.Command.Run(0x329970, 0x7, 0x0, 0x0, 0x389230, 0x35, 0x0, 0x0, 0x0, 0x0, ...)
    /home/adrian/development/gopath/src/github.com/codegangsta/cli/command.go:101 +0xc6f
github.com/codegangsta/cli.(*App).Run(0x2085aa0c0, 0x208564000, 0x4, 0x4, 0x0, 0x0)
    /home/adrian/development/gopath/src/github.com/codegangsta/cli/app.go:125 +0x941
main.main()
    /home/adrian/development/gopath/src/github.com/hybridgroup/gort/gort.go:23 +0x27f

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/mheap.c:507
runtime.goexit()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]:
bgsweep()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]:
runfinq()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
    /home/adrian/go/go_1.3.1/src/pkg/runtime/proc.c:1445

I'm not too familiar with go, but I did poke around in the source, and it seems to be occurring on this line: https://github.com/hybridgroup/gort/blob/master/commands/arduino.go#L20

I'm here at RobotsConf, so if anyone wants to work together to debug this, I'd love to help get RedBoards working with gort!

Unable to pair sphero using 'gort bluetooth pair'

When I ran:

$ gort bluetooth pair 00:06:66:44:39:C6

I got this message:

RequestPinCode (/org/bluez/427/hci0/dev_00_06_66_44_39_C6)
Enter PIN Code: Enter PIN Code: Creating device failed: org.bluez.Error.AuthenticationRejected: Authentication Rejected

I was not able to enter a PIN Code, it just returned that error...

When I used:

bluez-simple-agent hci0 00:06:66:44:39:C6

I was able to enter the PIN Code 1234 and pair succesfully...

SHA256 mismatch Error updating using 'brew upgrade' when applying ee7aed5e1020fa88f86777701948c8a236db4fc5.patch

==> Fetching qt@5
==> Downloading https://invent.kde.org/qt/qt/qtbase/commit/ee7aed5e1020fa88f8677
Already downloaded: /Users/leftcoast/Library/Caches/Homebrew/downloads/3ffa4658a7ec539205ee8592c5513ae1f0252b437858c02005e3d24973f5d98a--ee7aed5e1020fa88f86777701948c8a236db4fc5.patch
Error: SHA256 mismatch
Expected: ed082ed3cac51158ede4a0f4236eedf99c0981b3451c69f34e116fa8487fa333
Actual: 70b87c38dee827b36ea853e602edeb2df1eec5d098646e3dc1a3d3f2ab2e6459
File: /Users/leftcoast/Library/Caches/Homebrew/downloads/3ffa4658a7ec539205ee8592c5513ae1f0252b437858c02005e3d24973f5d98a--ee7aed5e1020fa88f86777701948c8a236db4fc5.patch
To retry an incomplete download, remove the file above.

Help installing gort using Homebrew

Hi,

I'm just trying to get artoo-sphero working, but I'm having trouble installing gort. I downloaded the zip folders, ran the exec files, but they just open a terminal screen that says process completed at the end. I'm not sure where to go next. Any help would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.