Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
i collect the data and display it to sever with udp by changing SendDataUDP code now i need to write it to text file and send it just once because i need the data every 1 ms and i can not send with this frueqency do you have any example or the solution to send the data with UDP with hight frequency because i will got the message "Failed to Enqueue SendAccelDataoverWifi to Application Command Processor".
Hi Sarawut, welcome to the community. At first glance, you can increase the command processor queue length when you setup it. http://xdk.bosch-connectivity.com/xdk_docs/html/group___c_m_d_p_r_o_c_e_s_s_o_r.html Here is the command processor API, which has the initialize fn, see the parameters: CmdProcessor_initialize (CmdProcessor_T *cmdProcessor, char *name, uint32_t taskPriority, uint32_t taskStackDepth, uint32_t queueSize)
The queueSize is the number of slots you queue actually has, and is typically set by 5 slots by default, so increase it to something above 128 slots this will help to store the messages for more time and will reduce the data drop. Please let me know if this was helpful to you. Felipe