# M2M Com port handling

**URL:** https://forum.sierrawireless.com/t/m2m-com-port-handling/3317
**Category:** Development tools
**Created:** [June 9, 2009, 9:26am UTC](https://forum.sierrawireless.com/t/m2m-com-port-handling/3317 "2009-06-09T09:26:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BenFT01](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@BenFT01](https://forum.sierrawireless.com/u/BenFT01)
#### Post date: [June 9, 2009, 9:26am UTC](https://forum.sierrawireless.com/t/m2m-com-port-handling/3317/1 "2009-06-09T09:26:50Z")

</div>

I’m debugging an app that uses the UART1, so I have a plug-in card with USB and use the serial to USB facility. I can get it generally to work, the issue is when opening and closing Uarts M2M has a great difficulty in reconnecting.  
e.g. to download some new code my typical cycle is something like this. (My app uses uart1 at 9600 in data mode)  
Set Serial Port Settings to COM 2 , 115200. Hit OK  
Hit Connect.  
Open Shell  
Type AT+WOPEN=0 (to stop my app which uses uart1) loses connection, no OK received.  
Disconnect (button doesn’t reset so have to hit C/C++ then Target Management again to reset the button)  
Connect  
Open shell and check AT+WOPEN? if successful  
Disconnect (reset button again as above)  
Open Settings, set to COM 1, 9600. Hit OK  
hit Connect. Connect fails. Shut down M2M, re-open, connects this time.  
Open shell, at+IPR=115200. Open settings and set rate to 115200 to match.  
Hit Connect. Connect fails. Try Baudrate search. Fails. Shut M2M. Re-open Connect.  
Chech shell is responding, Download. OK!!  
Reset Connect button.  
Change setting to COM2 , 115200  
fails to connect. Try again (Rest the button again). Fails  
Disconnect. (Rest the button again).  
Power cycle FSU.  
Connect. Fails.  
Close M2M.  
Open Device manager. For Wavecom Modem. Power cycle. Hit Properties. Hit Query button until get a response.  
Open M2M.  
Connect.  
Open Shell . Type AT+WOPEN=1  
Shell looses connection, so Reset Connection button.  
Reset Connect button.Disconnect.  
Connect. . If i’m lucky it connects.  
Then I can try the new code. But by this time I’m about ready to throw the thing out the window. 👿  
If I open a serial terminal program to test the connection, it always connects no problem.  
Is this just me, or do other have a similar problem? ❓  
I’m on Vista by the way.

---

<div class="post-metadata">

### Author: ![BenFT01](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@BenFT01](https://forum.sierrawireless.com/u/BenFT01)
#### Post date: [June 11, 2009, 10:10am UTC](https://forum.sierrawireless.com/t/m2m-com-port-handling/3317/2 "2009-06-11T10:10:45Z")

</div>

In your revisions of M2M can you get rid of the “Target connected” confirmation button, a timed message will do.  
The set connections box should have a button to then connect, rather than clicking OK , then hitting the connect button.  
And the Connect button should reset once pressed.  
And if a shell has lost connection it would be helpful if this was indicated, or perhaps even try to re-connect?  
Thanks.

---

<div class="post-metadata">

### Author: ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)
#### Post date: [June 11, 2009, 10:48am UTC](https://forum.sierrawireless.com/t/m2m-com-port-handling/3317/3 "2009-06-11T10:48:06Z")

</div>

> [@Ben FT](#):
>
> In your revisions of M2M can you get rid of the “Target connected” confirmation button

Agreed - it’s just an unnecessary impediment to the work flow!

> [@](#):
>
> a timed message will do.

I don’t think even that would be useful - the fact that the ‘Connecting’ box disappears is enough confirmation that the process has finished!

Cross-reference: [viewtopic.php?f=78&t=3466&p=13738#p13738](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=78&t=3466&p=13738#p13738)

---

<div class="post-metadata">

### Author: ![BenFT01](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@BenFT01](https://forum.sierrawireless.com/u/BenFT01)
#### Post date: [June 11, 2009, 3:00pm UTC](https://forum.sierrawireless.com/t/m2m-com-port-handling/3317/4 "2009-06-11T15:00:56Z")

</div>

Ah yes. Well put that man.

And I think your USB-\>Serial bug is another one of the things that is driving me up the wall as listed above.

Glad its not just me I suppose. Life was much easier before using two com ports. Sigh.

---

<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: [June 11, 2009, 11:45pm UTC](https://forum.sierrawireless.com/t/m2m-com-port-handling/3317/5 "2009-06-11T23:45:30Z")

</div>

Hiya Ben,

Just out of interest, try using a powered hub with your USB-Serial device, rather than plugging directly into the PC.

I’ve got a curious case here where the USB-Serial converter (FTDI based) works on my laptop using a powered hub - but doesn’t work (correctly) on my dev PC…

ciao, Dave
