PDA

View Full Version : Portal 2.4 Ubuntu 10.04 unable to connect


nathangray
07-29-2010, 06:12 PM
I'm trying to connect to a SnapStick using Portal 2.4 under an upgraded Ubuntu 10.04. The GUI gives these errors:


2010-07-29 17:08:15 Loading configuration from file: /home/nathan/Portal/default.swn
2010-07-29 17:08:18 Flush Write Buffer Exception:
2010-07-29 17:08:18 Flush Read Buffer Exception:
2010-07-29 17:08:18 Connection opened to /dev/ttyUSB0
2010-07-29 17:08:18 Flush Read Buffer Exception:
2010-07-29 17:08:18 Read Exception:
2010-07-29 17:08:18 Connection Closed

Log:

17:04:40:966 DEBUG Portal ******** Synapse Portal Log - 2.4.10 ********
17:04:41:868 DEBUG Portal.ComChannel Node Command Dispatcher Started
17:04:41:868 DEBUG Portal.ComChannel Node Response Dispatcher Started
17:04:42:736 INFO Portal Loading configuration from file: /home/nathan/Portal/default.swn
17:04:47:084 ERROR serialwrapper.PyserialDriver Flush Write Buffer Exception:
Traceback (most recent call last):
File "Synapse/Portal_2.4.10/serialwrapper.PyserialDriver", line 160, in flushWriteBuf
File "Synapse/Portal_2.4.10/serialwrapper.serial.serialposix", line 398, in flushOutput
SerialException: Port not open
17:04:47:086 ERROR serialwrapper.PyserialDriver Flush Read Buffer Exception:
Traceback (most recent call last):
File "Synapse/Portal_2.4.10/serialwrapper.PyserialDriver", line 169, in flushReadBuf
File "Synapse/Portal_2.4.10/serialwrapper.serial.serialposix", line 391, in flushInput
SerialException: Port not open
17:04:47:097 INFO Portal Connection opened to /dev/ttyUSB0
17:04:47:098 DEBUG Portal.NodeWatcher Sent querry for bridge device
17:04:47:112 ERROR serialwrapper.PyserialDriver Flush Read Buffer Exception:
Traceback (most recent call last):
File "Synapse/Portal_2.4.10/serialwrapper.PyserialDriver", line 169, in flushReadBuf
File "Synapse/Portal_2.4.10/serialwrapper.serial.serialposix", line 391, in flushInput
SerialException: Port not open
17:04:47:173 ERROR serialwrapper.PyserialDriver Read Exception:
Traceback (most recent call last):
File "Synapse/Portal_2.4.10/serialwrapper.PyserialDriver", line 241, in readPoll
File "Synapse/Portal_2.4.10/serialwrapper.serial.serialposix", line 344, in read
SerialException: Port not open
17:04:47:174 INFO Portal Connection Closed
17:04:53:196 INFO Portal Configuration saved to file: /home/nathan/Portal/default.swn
17:04:53:197 DEBUG Portal closeConnection Called
17:04:53:198 INFO Portal.NodeWatcher Unable to Send Broadcast Requesting 'Device Status'


I've tried setting the python lib directory to /usr/lib/python2.4 with no change.

mgenti
07-30-2010, 10:17 AM
Do you see this error when you first start Portal or after you try and connect to the SNAP Stick?

nathangray
08-03-2010, 08:29 AM
Do you see this error when you first start Portal or after you try and connect to the SNAP Stick?

That was when I tried to connect. Today it's different after I've restarted.
Now I get


07:27:51:665 DEBUG Portal ******** Synapse Portal Log - 2.4.10 ********
07:27:52:170 DEBUG Portal.ComChannel Node Command Dispatcher Started
07:27:52:171 DEBUG Portal.ComChannel Node Response Dispatcher Started
07:27:53:103 INFO Portal Loading configuration from file: /home/nathan/Portal/default.swn
07:27:58:783 INFO Portal Connection opened to /dev/ttyUSB0
07:27:58:785 DEBUG Portal.NodeWatcher Sent querry for bridge device
07:27:59:654 ERROR snaplib.PacketQueue Did not get an expected response within timeout period from 0001
07:28:04:641 WARNING snaplib.PacketSerialProtocol SNAP communication timeout
07:28:10:519 INFO Portal.NodeWatcher Unable to Send Broadcast Requesting 'Device Status'
07:28:10:567 WARNING snaplib.PacketSerialProtocol SNAP communication timeout

mgenti
08-03-2010, 08:31 AM
I'm assuming this SNAP Stick works on another PC? Also, does the user your are running Portal as have access to read and write from /dev/ttyUSB0?

nathangray
08-03-2010, 08:39 AM
I'm assuming this SNAP Stick works on another PC? Also, does the user your are running Portal as have access to read and write from /dev/ttyUSB0?

Yes, also used to work on this PC using Portal 2.2 and Wine.

User has permissions.

mgenti
08-04-2010, 10:46 AM
Yes, also used to work on this PC using Portal 2.2 and Wine.

So this just recently stopped working?

I retested Portal on a Ubuntu 10.04 box with a SNAP Stick and could connect with no problems.

nathangray
08-04-2010, 11:47 AM
So this just recently stopped working?
It was doing testing onsite for a few weeks with a windows machine, now it's back on my desk.
Now neither Portal 2.2 over Wine nor Portal 2.4 for Linux can find the snapstick.
I've tried with 2 nodes.

I retested Portal on a Ubuntu 10.04 box with a SNAP Stick and could connect with no problems.

That's not good news for me.

Could old firmware be an issue? The nodes are probably still at 2.2 or earlier.

mgenti
08-04-2010, 12:39 PM
Yes, it is worth updating since there have been some changes on how we to talk to the nodes.

nathangray
08-04-2010, 08:13 PM
I updated the firmware, but my with my laptop I still cannot connect to/through the stick. I've used another Ubuntu 10.04 box to connect via RS232 and USB, so the hardware's fine; it's something with my laptop.

Any ideas what to check?
Both machines are upgrades to 10.04 from previous release.

nathangray
08-06-2010, 11:00 PM
This evening I tried out a 10.4 live CD, and it worked.
When I booted back to my 10.4 installation, I was able to connect.

Weird.

Jheath
08-07-2010, 07:34 AM
Weird, but working.

Not always a bad pairing.

Glad you've got things up and running.