Jump to content

cannot connect via python


tf_archiv

Recommended Posts

I'm testing just arrived brickets, thanks!

 

I'm testing it on Ubuntu 10.04 via brick viewer everything seems to be alright but I cannot connect to brick via python and I get an error: ip_connection.Error: -1: Could not add device XYZ, timeout

 

I also had a problem with installing .egg (but this time I just imported libs manually): " root:/home/user/tinkerforge_python_bindings_latest> easy_install tingerforge.egg

 

Searching for tingerforge.egg Reading http://pypi.python.org/simple/tingerforge.egg/ Couldn't find index page for 'tingerforge.egg' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for tingerforge.egg error: Could not find suitable distribution for Requirement.parse('tingerforge.egg') "

Link zu diesem Kommentar
Share on other sites

You can get the UIDs with the enumerate callback of the ip connection: http://www.tinkerforge.com/doc/Software/IPConnection_Python.html#example

But note: If you have two of the same devices (for example two Poti Bricklets) you obviously need to assign the UIDs while writing the code. Otherwise there is no way to differentiate between them!

Link zu diesem Kommentar
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...