Error connecting to Arduino

45 views
Skip to first unread message

Andy Irving

unread,
May 11, 2013, 9:35:59 PM5/11/13
to netlab-...@googlegroups.com
I am having problems connecting to the Arduino.  I have an Uno connected on COM5 and have uploaded the StandardFirmata sketch.

Here is the message in the Flash console.

connecting to localhost Hub for storing/retrieveing parameters...
--->initializing parameters from file <localhost:Untitled-1.xml>
Widget 'input0' connecting...
...input0 ERROR CONNECTING ---> IS THE DEVICE CONNECTED?
/service/arduino/reader-writer/connect FAIL {java.lang.RuntimeException: Error inside Serial.<init>()}

Here is the message from hub.

=================================================
Welcome to NETLab Hub
Version 2.0 build Jul 18 2012
=================================================
[Hub-Launcher] INFO  Loaded plugin arduino (2.0 Jul 18 2012)
[Hub-Launcher] INFO  Loaded plugin core (2.0 Jul 18 2012)
[Hub-Launcher] INFO  Loaded plugin linkm (2.0 Jul 18 2012)
[Hub-Launcher] INFO  Loaded plugin osc (2.0 Jul 18 2012)
[Hub-Launcher] INFO  Loaded plugin xbee (2.0 Jul 18 2012)
[Hub-Launcher] INFO  Starting server on port [51000]
[Hub-Server] INFO  Waiting for client connections on port [51000]...
[Hub-WebSocket-server] INFO  Starting WebSocket server on port [51001]
[Hub-Launcher] INFO  Waiting for TCP/IP socket connections at 192.168.1.65
[AWT-EventQueue-0] INFO  Currently connected serial devices:
COM1
COM5

[AWT-EventQueue-0] INFO  Turning debug logging on
[Hub-Session-2] DEBUG ### Received message from client [/service/core/file-io/put {<NETCONNECT><AnalogInput_input0 connectButton="on" smoothButton="off" easeButton="off" invertButton="off" sMin="0" sMax="1023" sFloor="0" sCeiling="1023"/></NETCONNECT>}]
[Hub-Server] DEBUG Accepted connection from client [Socket[addr=/127.0.0.1,port=52360,localport=51000]]
[Hub-Session-4] DEBUG Session 4 started (client=/127.0.0.1:+52360)
[Hub-Session-4] DEBUG ### Received message from client [/service/arduino/reader-writer/connect COM5]
[Hub-Dispatcher] DEBUG Writing [<NETCONNECT><AnalogInput_input0 connectButton="on" smoothButton="off" easeButton="off" invertButton="off" sMin="0" sMax="1023" sFloor="0" sCeiling="1023"/></NETCONNECT>]
[Hub-Dispatcher] DEBUG ### Sending message to client [/service/arduino/reader-writer/connect FAIL {java.lang.RuntimeException: Error inside Serial.<init>()}]
[Hub-Session-4] DEBUG ### Received message from client []
[Hub-Session-4] DEBUG Session 4 ended (client=/127.0.0.1:+52360)

If anyone can point me in the right direction it would be much appreciated.

Philip van Allen

unread,
May 12, 2013, 4:05:31 PM5/12/13
to netlab-...@googlegroups.com
Things look okay from what I can see - a few things to check:

  • If the Arduino software is still running, it may own the serial port preventing the Hub from connecting - don't run the Arduino software and the Hub at the same time
  • Try rebooting the computer and trying again in case the serial port has a problem
  • Are the Arduino LEDs showing that it has power?
Let me know if you have any other info.

.phil
Reply all
Reply to author
Forward
0 new messages