FCM problems!


#1

Hi every one;
I subscribed for FCM service and use UART1 to send data to PC.
UART1 is opened but when I use adl_fcmSendData (…) to send data, it got problem.
I used “TRACE” to print the error to PC and the error is “The flow is not ready to send data”.
Can you tell me why and how to solve this problem ?
Thanks for your help.
Best Regards.
NVT.


#2

What, exactly, generates that message?

Apart from the obvious - the flow is not ready to send data - it is impossible to say without seeing your code!

Again, apart the obvious - make the Flow ready to send data - it is impossible to say without seeing your code!

What steps did you take to make the flow ready to send data?

See: viewtopic.php?f=13&t=1621&p=5881&hilit=ADL_FCM_EVENT_V24_DATA_MODE#p5881


#3

Thank you.


#4

Please note the ‘Code’ button for posting formatted source code.

Your code shows that your initial description of the problem was inacurate:

But your code clearly shows that you never actually subscribe at all - the return value from adl_fcmIsAvailable prevents you from doing so and, instead, gives that message.

So, the real question is: why does adl_fcmIsAvailable say that UART1 is not available for use?

I don’t know - the manual says it should always be available! :frowning: