Read through that thread and the other one ([CUL transport] Fix for issue with CUL transport race condition).
In your case (OH-beginner) I would suggest to continue in here, using the raw mode correctly should produce the same output as you have done in FHEM.