EOT character on Miniserver UDP frames

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • tonixone
    Azubi
    • 23.10.2022
    • 4

    #1

    EOT character on Miniserver UDP frames

    Hi, I'm trying to send commands to a Philips HUE lamp using UDP virtual outputs.

    With an MQTT client the command is well recognized by the lamp but I can not work from the Miniserver.

    Zigbee2mqtt always returns an error and, using Wireshark and a MQTT client I have been able to verify that the problem is that the frames sent by the miniserver end with the character 0x04 (EOT).

    Seems that MQTT is not able to eliminate that character before passing the frame to zigbee2mqtt.

    Do you know what I'm doing wrong?

    I tested MQTT Gateway version 2.1.0 and 2.1.199

    Best regards
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11238

    #2
    Hi,

    I've never heard or seen a problem of an 0x04 character sent by the Miniserver. Also, no other user from MQTT Gateway or Zigbee2Mqtt reported such issue.
    Are you really sure that there's no invisible character in your out command? Also check all other fields that usually are not used for udp.
    You also might show some pictures of your config.

    This is a tcpdump of an incoming UDP message from Miniserver (Gen.1) to the MQTT Gateway, publishing to MQTT for a Shelly:

    Code:
    10:25:21.898731 IP lxl0043.brunnenweg.lan.11884 > papi.11884: UDP, length 43
            0x0000:  4500 0047 3497 0000 4011 c3de c0a8 004d  E..G4...@......M
            0x0010:  c0a8 0093 2e6c 2e6c 0033 2077 7368 656c  .....l.l.3.wshel
            0x0020:  6c69 6573 2f73 6865 6c6c 7931 2d35 4241  lies/shelly1-5BA
            0x0030:  4342 312f 7265 6c61 792f 302f 636f 6d6d  CB1/relay/0/comm
            0x0040:  616e 6420 6f66 66                        and.off
    ​There is no 0x04 in the message.

    Regards, Christian
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • tonixone
      Azubi
      • 23.10.2022
      • 4

      #3
      Hi, thanks for your response Christian.

      Yesterday I haven't access to my home system but now I can share here my case with images.

      This is my Loxone UDP output command.

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 202
Größe: 108,5 KB
ID: 371772

      This is the Wireshark capture where you can see the last character 0x04

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 144
Größe: 139,1 KB
ID: 371773Then Loxberry MQTT Gateway dashboard shows the error

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 150
Größe: 345,4 KB
ID: 371774

      And with ​​MQTT Explorer I read the same value in the ".../set/brightness" topic-

      Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 247
Größe: 121,3 KB
ID: 371776


      Angehängte Dateien

      Kommentar

      • tonixone
        Azubi
        • 23.10.2022
        • 4

        #4
        But...

        If I send the same command trough MQTT Explorer all is working good


        And the Loxberry MQTT Gateway dashboard now show how the lamp received the correct value "20" and adjusted its brigtness at the value 20.



        With these informations, do you know how can I resolve this problem? Maybe writing a transformer?

        Best regards.
        Toni​
        ​​​

        Kommentar

        • Christian Fenzl
          Lebende Foren Legende
          • 31.08.2015
          • 11238

          #5
          Try to change the PUT to a GET.
          The Miniserver usually doesn’t send a 04.

          Regards, Christian
          Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

          Kommentar

          • tonixone
            Azubi
            • 23.10.2022
            • 4

            #6
            Zitat von Christian Fenzl
            Try to change the PUT to a GET.
            The Miniserver usually doesn’t send a 04.

            Regards, Christian
            Thanks Christian, this was my mistake, with GET the frame is sended wihout EOT character, now the Philips HUE response quickly at Miniserver virtual outputs.

            Best regards

            Kommentar

            Lädt...