This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

app_uart_put

Hi everyone

I am using app_uart_put() method for sending data via UART. The problem is that when I send each byte I get each byte back to its event handler in APP_UART_DATA_READY state. I would like to get only received data on APP_UART_DATA_READY state. I will appreciate for help in advance.

  • control said:
    It seems that the SIMCOM module starts working properly when it is power on at least 10s. If the command is sending before that time it can happen that SIMCOM does not respond at all. It is interesting fact because they stated in the documentation that this time is 2s. I can confirm that PC and nrf send the same commands over UART proved by a logic analyzer.

    If this is the case then I suppose it would be mentioned in the SIMCOM's component documentation - a required delay before starting operation. It is very strange if they have documented this time as 2 s, while you in practice need 10 s. Perhaps there are other users of the same module that have encountered a similar issue?
    I am unfortunately not familiar with the SIMCOM modules myself.

    I am glad to hear that you are able to confirm both NRF and PC sending the same commands. It sounds particularly strange then, that the SIMCOM would respond differently to the two devices..

    control said:
    If I use DEBUG I get the following error
    control said:
    It is very weird that I get this error  because I do not use FreeRTOS operating system.

    This is not an error per say, but an assert statement.
    Is there any more information, as to where / when in the program this assert is triggered?
    Could you use the debugger to step through your program, and see from where this assert is triggered? I.e we see from the printout exactly which line it happens on - but which function is leading up to entering the part of the code?
    It seems particularly strange if you are not using FreeRTOS.
    Are you working out of one of the SDK examples? If so, which example do you base your application on, and what modifications have you made to the sdk_config.h file?

    Best regards,
    Karl

Related