Apologies if this is a silly question, I've just started with this, I'm an embedded C++ programmer so facing a bit of learning curve at the moment.
In Main, I set up Timer1 for a 200ms tick after bluetooth connection succeeds, and then ChatActivity is started to harvest data. My bluetooth product sends data at intervals of up to 100ms, there is never a longer time between transmissions. In the AStream_NewData routine a flag data as having been received.
In the Timer1_Tick in Main, every 200ms that flag is checked, and if no new data has arrived I flag the external bluetooth module as having been powered down (as this is the only case wherein data isn't sent within a 200ms time frame.
Timer1_Tick is being entered, but doesn't seem to be entered after I call StartActivity(ChatActivity), so I turn off my device and expect to hit a breakpoint in timer1_Tick, but it doesn't happen. If I manually pause the debug process, the highlighted line is Sub AStream_Error.
So, is timer1_Tick being blocked somehow by the bluetooth disconnect causing a AStream Error, or can anyone offer advice as to how I best handle this? I adopt this apporach because the ACL_DISCONNECT takes up to 15 seconds and is way too slow for my needs. Thanks.
In Main, I set up Timer1 for a 200ms tick after bluetooth connection succeeds, and then ChatActivity is started to harvest data. My bluetooth product sends data at intervals of up to 100ms, there is never a longer time between transmissions. In the AStream_NewData routine a flag data as having been received.
In the Timer1_Tick in Main, every 200ms that flag is checked, and if no new data has arrived I flag the external bluetooth module as having been powered down (as this is the only case wherein data isn't sent within a 200ms time frame.
Timer1_Tick is being entered, but doesn't seem to be entered after I call StartActivity(ChatActivity), so I turn off my device and expect to hit a breakpoint in timer1_Tick, but it doesn't happen. If I manually pause the debug process, the highlighted line is Sub AStream_Error.
So, is timer1_Tick being blocked somehow by the bluetooth disconnect causing a AStream Error, or can anyone offer advice as to how I best handle this? I adopt this apporach because the ACL_DISCONNECT takes up to 15 seconds and is way too slow for my needs. Thanks.