I’m using an M1306B modem, with 657e firmware, 3.14.04 OS version and WIP 3.00.1030.
I’m seeing different results if using debug mode and downloading application to the modem: With the application running in the modem, wip_bearerStart always return 0, and after a while, WIP_BEV_IP_CONNECTED event is sent to the handler properly, but in debug mode, wip_bearerStart always return -27, and WIP_BEV_IP_CONNECTED event is never received, so, I can’t debug properly. Has someone seen this? Any workarounds?
i currently use a modem Q2686 and Q2687. The WIP plug-in works properly under RTE and target modes for me. In RTE mode, events are released after a while, because there is a synchronization betweeen your PC (which execute your OpenAT application in debug mode --> allow you to insert breakpoint …etc…) and the module (used as a modem in this mode). Then, -27 means WIP_BERR_OK_INPROGRESS (p.221), “connection started, an event will be sent after completion”. So, everything fine, the code -27 is not an error… it informs you that the connection is in progress…If you wait few seconds (maybe 20 seconds average in debug mode) event "WIP_BEV_IP_CONNECTED will be sent.
In target mode, events are released more quickly because OpenAT application is loaded and executed on your module without any synchronization constraints.
Which, as afaurep said, is WIP_BERR_OK_INPROGRESS - so that’s not a problem…
If you don’t get WIP_BEV_IP_CONNECTED, you should instead get WIP_BEV_IP_CONN_FAILED - and that should include a reason for the failure…
Even in Target mode, IIRC, there can be a long delay before the unit finally gives up with WIP_BEV_IP_CONN_FAILED - are you sure that you’re waiting long enough…?
No event was received after calling wip_bearerStart, WIP_BERR_OK_INPROGRESS nor WIP_BEV_IP_CONNECTED, after waiting for 5 minutes. But I’ve luckily found the reason. My modem is configured to 9600 baud after a reset, and seems that some events are not received by the computer if working at less than 115200 baud. Now everything is working properly in both modes.
I also have the error “WIP_BEV_CONN_FAILED” and she is intermpre connection .
it works well in debug mode , what must be changed for it works in release mode
Regards
it works well now , i have a problem in function strlen , it takes not the last char when i use it with wm_memcpy for copy my list configuration , so I change it by sizeof and now it works in the 2 modes , the last char is ‘0’ for the end of string .
i know the differnce between strlen et sizeof because they have he same function , but i’m not understand what do you man by the differnce between the wmcpy et strlen , i can’t compare with this two functions .