Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Habe heute etliche TF Module bekommen und diese alle brav angeklemmt. Per brickv wird alles unter Linux sowhl auf einem AMD Rechner als auch unter Raspberry Pi brav angezeigt wie es soll.

 

Das ganze unter PHP, C oder sogar Shell bringt allerdings nur Murks.

 

Selbst unter der Shell gab es nur:

 

tinkerforge call color-bricklet $uid get-color

 

tinkerforge call color-bricklet <uid> get-config: error: got invalid parameter for function 14

 

Der Parameter light-on machte gar nix, bzw light-off ging auch nicht. Ein Temperatursensor liefert sowohl unter C als PHP als auch unter der Shell nur Müll oder Wahnsinn!?!?

 

Wo liegt da der Fehler, hab alles runtergeladen und die Fehler sind sowohl unter Raspebbry als auch Ubuntu vorhanden.

 

Das verrückte ist ja, das mit dem brickv alles geht.

 

Wo liegt da jetzt mein Fehler?

 

Auch unter phyton selbst kommt z.B.:

 

Traceback (most recent call last):

  File "example_simple.py", line 19, in <module>

    color = c.get_color()

  File "/home/jgm/TI/PY/examples/tinkerforge/bricklet_color.py", line 136, in get_color

    return GetColor(*self.ipcon.send_request(self, BrickletColor.FUNCTION_GET_COLOR, (), '', 'H H H H'))

  File "/home/jgm/TI/PY/examples/tinkerforge/ip_connection.py", line 968, in send_request

    return self.deserialize_data(response[8:], form_ret)

  File "/home/jgm/TI/PY/examples/tinkerforge/ip_connection.py", line 843, in deserialize_data

    x = struct.unpack(f, data[:length])

struct.error: unpack requires a string argument of length 2

 

Da passt was nicht, bloss was???

Geschrieben

brickv nutzt auch nur die Python Bindings, es gibt also kein Grundsätzliches Problem.

 

Kannst du dein komplettes Programm hier posten? Hast du die UID angepasst?

 

Anhand der Fehlermeldungen würde ich sagen du bekommst Parameter zurück die nicht zum Funktionsaufruf passen. Hast du vielleicht die UID des Master Bricks für die Bricklets genutzt? Die UID der Bricklets vertauscht? :)

Geschrieben
  • Autor

AUA!!! Ja das tut weh, wenn man als Anfänger gleich rumproggt ohne nachzudenken. Ja, ich habe die MasterUID genommen um die anderen Teile anzusprechen und dementsprechend Müll zurückbekommen. Oh Mann, das ist jetzt oberpeinlich! Aber danke für deine Hilfe, das ging wirklich superschnell!

 

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...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.