0

Requirement of RTOS for ThinClient

asked 2015-02-04 03:22:31 -0700

TheHindenburg gravatar image

Going off of this question, I would like to know

  1. Why is an RTOS needed/recommended for implementing the TC on a device?

  2. How would we go about implementing the Thin Client on a device without an RTOS?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-02-05 11:49:10 -0700

jprestwo gravatar image

Thin Client itself does not require an RTOS, it is implemented in one big super loop but there is a catch. The reason the Arduino DUE, STM32, and K64F use an RTOS is for the WiFi driver (WSL in this case). When the Thin Client calls its read function (AJ_Net_Recv/RecvFrom()) it expects there to be data waiting for it. This is why, on these targets, there is an additional task that is polling on the network for data to come and stashing it away for when AllJoyn wants to consume it. The only way you could do this without an RTOS is by triggering an interrupt when there is data available on the network, then copy that data into a buffer that AllJoyn can read from. Regardless of the way you do it there will need to be some kind of this asynchronous behavior involved, whether it be an RTOS or with interrupts.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-02-04 03:22:31 -0700

Seen: 229 times

Last updated: Mar 03 '15