Visual Productions forum

Author Topic: Cuety LPU2 / UDP  (Read 594 times)

October 24, 2019, 03:23:27 PM
Read 594 times

manulight51

  • Member
  • *
  • Posts: 7
Hello

I have a problem sending a UDP command to a CUETY LPU2
=> when I send "Hello" or "release" I have the return of the device
=> when I send "pb14 / fl" it does not work.

I saw you say "integer" = what do you mean exactly?

I use the same system sending UDP command for a Cuecore with whom it works very well.

Thank you

October 24, 2019, 04:00:22 PM
Reply #1

manulight51

  • Member
  • *
  • Posts: 7
I found the worry = the documentation for use indicate an example with "pb59 / bu" but it is necessary to make "pb59 / bu = 0" or 1 according to the need.
You have to update the documentation. ;) ;D

October 24, 2019, 05:32:44 PM
Reply #2

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 337
Hi,

I will update it in the manual. Thank you for letting us know. Please note that you have to send a 0 right after the 1, because otherwise it will be interpreted as a long press and that will release the playback.

Greetings,
Bootsy

October 25, 2019, 08:57:33 AM
Reply #3

manulight51

  • Member
  • *
  • Posts: 7
Hello.

you welcome  :D

i have a question: there is a character of end hexadeciaml "\x00" what does it mean for you?

October 25, 2019, 09:15:58 AM
Reply #4

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 337
Hi,

We do not have any ending characters in the LPU-2. Where have you seen this \x00?

Greetings,
Bootsy

October 25, 2019, 10:18:44 AM
Reply #5

manulight51

  • Member
  • *
  • Posts: 7
I work on crestron module with UDP protocol and when i send "Hello" the answer of LPU2 is "Hello\x00"

October 25, 2019, 12:20:05 PM
Reply #6

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 337
Hmm, that is strange... I will have to ask the programmers. I thought we did not have any endline characters.

Is it a problem for you, or can you work around it?

Greetings,
Bootsy

October 25, 2019, 12:21:13 PM
Reply #7

manulight51

  • Member
  • *
  • Posts: 7
i have found an solution to work with :)

October 25, 2019, 12:38:52 PM
Reply #8

manulight51

  • Member
  • *
  • Posts: 7
oups : one more question :

 noticed that the command "bu" had a different behavior depending on whether the button is set to "FLASH" or "TOGGLE" and that this can give strange results.

Is there a way to be
know the type of button (go / toggle / flash ...)
have a command to change the type of all the buttons.

Or maybe I do not take the right way  ;D

Thank you

October 25, 2019, 03:06:11 PM
Reply #9

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 337
Hi,

So the "bu" command imitates the actual press of the button in the Cuety interface. When pressed shortly, this is a Go+ command. When pressed longer, it will release the playback.
The same will happen with this UDP command. You will have to send a "...bu=1" for the pressing of the button, and a "...bu=0" for the release of the button.
If you send these immediately after each other, it will be a Go+
If you send these with a pause, or don't send the 0 value at all, it will be a release.

If you want to prevent this behaviour, you can use the go+ and release commands instead of the "bu" (button) command.

Greetings,
Bootsy

October 25, 2019, 04:08:09 PM
Reply #10

manulight51

  • Member
  • *
  • Posts: 7
Ok Thanks.

I think you need to specify the PB mode (Go / Toggle / Flash ...) because the way to react changes:

If the mode is GO => it actually works as you described it to me.
what is the time between Go and release ?

In my case :
If the mode is FLASH
at departure the PB is OFF
if I press "fast" on it activates and remains activated
if I press "long" on it is the same thing.
In this case it is necessary to send the state that one wants to obtain so that it reacts.

EDIT :
I have make a mistake when i have make my test:

mode  GO =>
- send a go+ to start
- send a bu=1 to stop
- send a bu=0
OK ?

mode TOGGLE =>
- send a bu=1 to start
- send a bu=0
- send a bu=1 to stop
- send a bu=0
OK ?



« Last Edit: October 25, 2019, 05:20:30 PM by manulight51 »

October 26, 2019, 12:27:50 PM
Reply #11

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 337
Hi,

Do you want to have separate buttons for Go+ / release?
For Go+ you can use the go+ command. for release we have a release command.
If you want to combine it into a single button which you can short press or long press, you will send:
Short press: bu=1 bu=0 = go+
Long press bu=1                           bu=0 =release

To toggle you would have to send a Go+ on the first press and a release on the second press of the button.

Greetings,
Bootsy

 

SMF spam blocked by CleanTalk