Skip to main content
Solved

UDP message received on FME Cloud is nonsense


jatoxa
Contributor
Forum|alt.badge.img+12

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

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.

View original
Did this help you find an answer to your question?

2 replies

laurawatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • Best Answer
  • January 22, 2021

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.


jatoxa
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • January 23, 2021

Hi @lauraatsafe​,

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings