UDP message received on FME Cloud is nonsense

  • 17 January 2021
  • 2 replies

Userlevel 1
Badge +9

I have set up a sensor to send UDP messages to FME Cloud via a GSM modem and it works great as a trigger, but the message that arrives is nonsense.


I believe everything is sent as bytes through the serial port so I have no idea whether its possible to format it before sending or the problem is how FME Cloud is receiving the data.



Best answer by laurawatsafe 22 January 2021, 20:25

View original

2 replies

Badge +11

Hi @jatoxa​ ,


It looks like the messages from the UDP trigger are coming through in their raw binary form. In my test, I sent "Hello world!" to FME Server via UDP and it came through as "SGVsbG8sIHdvcmxkIQ==" I was able to 'unscramble' the message within a Workspace using the BinaryDecoder transformer. In my case, I set the Encoding Type to Base64 and the Character Encoding for Output Data to System Default to get the proper string output.


I'll check with our team here to confirm if this is expected behaviour. I also would have expected the messages to automatically be decoded when FME Server/Cloud receives them.

Userlevel 1
Badge +9

Hi @lauraatsafe​,

Fantastic, thanks! I actually tried it but forgot to set the character encoding. All my messages makes sense now.