Power on / power off using TAPI : odd errors occurring
I'm using the standard TAPI commands for powering the device on and off (lineSetEquipmentState()). This works fine most of the time. However, it can often get into a state where neither functions work with the function reporting the 'operation failed' TAPI code. The only way of fixing this is to warm start the device.
The problem seems to stem from a timing issue as if I turn the module on then off quickly using the line function I will often receive these errors. Once I receive one failure it is almost impossible to recover. Unfortunately this problem is quite unpredictable.
Secondly, some SIMs have given us problems on power up. The only way I found to get round this is to call lineGetEquipmentState() directly after the lineSetEquipmentState() function. While this (hack) works I have no idea why.
This problem is affecting both XDA and XDAII, but is more pronounced on the XDAII. It would be nice to know what is causing the problem and what can be done to counter-act it. Anyone have any ideas?
|