# DWL File download with W32K mode and Developer Studio 2.1.0

**URL:** <https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217>\
**Category:** Development tools\
**Created:** [September 2, 2011, 8:57am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217 "2011-09-02T08:57:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [September 2, 2011, 8:57am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/1 "2011-09-02T08:57:22Z")

</div>

Hi

We are using W32K mode without using the DTR signal (AT+W32K=1,0). Obviously this means that while the unit is in sleep mode, it does not receive UART comms, thus AT commands via UART 1. The work-around is to send the AT command, which wakes the unit up, and then send the command again at which time the unit recieves it. This means that before a download takes place, I sent AT to the modem, which wakes it up, and then download the firmware.

The problem now is that in Developer studio 2.1.0, a check is done on the modem before the firmware download commences. From what I can tell, the check is to read the modem serial number. This is retried until a response is obtained from the modem which means that if the modem is in sleep mode, the first check fails but the second one passes. Developer Studio 2.1.0 then tries to put the modem into download mode, however the modem returns to sleep before reading the download command and the system hangs (the download command is not resent by Developer Studio 2.1.0 like the modem check is). This means that when ever I want to download a new application I must stop the current application, download the new one and start it again.

This is obviously not a big issue, just an annoyance, however if possible please could you add a resend to the download command after a period of no response?

Thanks!

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [September 5, 2011, 6:33am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/2 "2011-09-05T06:33:09Z")

</div>

It’s true that we don’t handle this use case, thanks for reporting it.  
We’re going to have a thought about how to deal with that in next version.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [April 5, 2012, 7:00am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/3 "2012-04-05T07:00:56Z")

</div>

Did you give a try with 2.1.1?  
The way the checks are made were modified WRT 2.1.0 (especially in the fact that several tries are made if the first ping doesn’t answer…) --\> we think this should help in this particular case.

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [April 10, 2012, 12:56pm UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/4 "2012-04-10T12:56:12Z")

</div>

Thanks, it does work much better in 2.1.1

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [May 16, 2012, 6:49am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/5 "2012-05-16T06:49:23Z")

</div>

I have recently upgraded to Developer Studio 2.2.0, and I now get the following errors while trying to connect to a modem or download a dwl file with W32K mode enabled:

> [@](#):
>
> Download file 978000\_wmp.dwl to port COM13, reload informations and check =\> ERROR: Timeout while handling command: class com.swi.tm.hlservices.target.internal.bundle.AtDebugStateCallback  
> Download file 978000\_wmp.dwl to port COM13, reload informations and check =\> ERROR: Timeout while handling command: class com.swi.tm.hlservices.target.internal.bundle.AtDebugStateCallback  
> Open port COM13 =\> NO NEED TO DO IT: Success  
> Waiting for module detection =\> DONE: Target detected sn:741460010215500 baudrate:230400  
> Switch to Development mode and check =\> DONE: Success  
> Switch to Development mode =\> DONE: Success  
> Pause : 300 milliseconds =\> DONE: Success  
> Check dev mode unlocked =\> DONE: Success  
> Enable persistent development mode =\> DONE: Success  
> Show a CONFIRM dialog with message =\> NO NEED TO DO IT: Success  
> DWL File parsing =\> DONE: Success  
> Show a CONFIRM dialog with message =\> NO NEED TO DO IT: Success  
> Load model element: Target Informations =\> ERROR: Timeout while handling command: class com.swi.tm.hlservices.target.internal.bundle.AtWdm2Callback  
> Load model element: Target Informations =\> ERROR: Timeout while handling command: class com.swi.tm.hlservices.target.internal.bundle.Ati9Callback  
> Load model element: Target Informations =\> ERROR: Timeout while handling command: class com.swi.tm.hlservices.target.internal.bundle.AtDebugStateCallback

In order to download the application or connect to the unit, it is necessary to stop the application using “AT+WOPEN=0” first.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [May 22, 2012, 7:53am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/6 "2012-05-22T07:53:14Z")

</div>

We’ve made some (reliability + speed) improvements in DS 2.2.0 for target information loading, but apprently it broke something in your use case…  
We’ll have a look on that; please can you just elaborate on the FW version you use?

---

<div class="post-metadata">

**Author:** ![Jorn](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jorn](https://forum.sierrawireless.com/u/Jorn)\
**Post date:** [June 15, 2012, 8:51am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/7 "2012-06-15T08:51:40Z")

</div>

I believe I have the same problem as tomridl

Using 7.45.1, but I get the same error when I try to change the firmware.

---

<div class="post-metadata">

**Author:** ![tomridl](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/tomridl/32/2704_2.png) [@tomridl](https://forum.sierrawireless.com/u/tomridl)\
**Post date:** [June 20, 2012, 12:33pm UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/8 "2012-06-20T12:33:03Z")

</div>

> [@daav](#):
>
> please can you just elaborate on the FW version you use?

Using 7.47.0

---

<div class="post-metadata">

**Author:** ![jimmykd](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jimmykd](https://forum.sierrawireless.com/u/jimmykd)\
**Post date:** [December 9, 2013, 9:53am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/9 "2013-12-09T09:53:46Z")

</div>

Dear Developers.

I am New to open AT.  
my requirement is to send fire AT+CCED and read it’s response to an array and later on send it to a server.

i want to know how to fire AT command and read it’s response. please share any sample code if available.

Thanks.

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://forum.sierrawireless.com/u/davidc)\
**Post date:** [December 12, 2013, 7:27am UTC](https://forum.sierrawireless.com/t/dwl-file-download-with-w32k-mode-and-developer-studio-2-1-0/5217/10 "2013-12-12T07:27:27Z")

</div>

Hiya,

Please start a new thread for your question.

> [@jimmykd](#):
>
> Dear Developers.
> 
> I am New to open AT.  
> my requirement is to send fire AT+CCED and read it’s response to an array and later on send it to a server.
> 
> i want to know how to fire AT command and read it’s response. please share any sample code if available.
> 
> Thanks.

ciao, Dave
