Jump to content

[Shell] Voltage/Current Bricklet BugReport


UKN_PV

Recommended Posts

Master Brick 2.4.3

Voltage/Current Bricklet 2.0.4

Brick Viewer 2.3.7

 

Bei der Shell Konfiguration der Mittelwerteinstellung (averaging length) ist ein Fehler vorhanden.

 

Der Befehl tinkerforge call voltage-current-bricklet UID set-configuration x 4 4

 

mit 0 < x < 8

 

setzt für x = 1 den Wert 1 (anstelle von 4)

und für  x = 4 den Wert 4 (anstelle von 128)

 

Nach der API müsste aber folgendes Verhalten auftreten:

 

x      averaging length

0 1                          ok

1 4

2 16                        ok

3 64                        ok

4 128

5 256                      ok

6 512                      ok

7 1024                    ok

 

 

 

Link to comment
Share on other sites

Das ist in dem Sinne kein Bug, sondern vielleicht eine Unschönheit in der Benutzung. Das averaging Parameter hat Symbole für seine Werte (1, 4, 16, 64, ...). Zuerst wird geschaut ob die Eingabe einem Symbol entspricht, wenn nicht dann wird sie als Zahl interpretiert. In diesem Fall überschneiden sich die Symbole und die Zahlen leider bei 1 und 4.

 

Teste das mal bitte so:

 

tinkerforge --no-symbolic-input call voltage-current-bricklet UID set-configuration x 4 4

Link to comment
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...