# Cannot programmatically alter baudrate

**URL:** <https://forum.sierrawireless.com/t/cannot-programmatically-alter-baudrate/2880>\
**Category:** Open AT\
**Created:** [January 29, 2009, 6:57pm UTC](https://forum.sierrawireless.com/t/cannot-programmatically-alter-baudrate/2880 "2009-01-29T18:57:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.reinhardt](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@anton.reinhardt](https://forum.sierrawireless.com/u/anton.reinhardt)\
**Post date:** [January 29, 2009, 6:57pm UTC](https://forum.sierrawireless.com/t/cannot-programmatically-alter-baudrate/2880/1 "2009-01-29T18:57:49Z")

</div>

I have succesfully subscribed and transferred data via UART1 using adl flow control. However , I need to change the baud rate to a value determined at runtime , so I have implemented the following , inter alia :

```auto
.....

     // first set baudrate while still in AT mode 
    wm_sprintf(s,"at+ipr=%u",V24FCMBaudRate); // eg V24FCMBaudRate = 9600
    adl_atCmdCreate(s,TRUE, (adl_atRspHandler_t) V24FCMSetBaudCmdResponseHandler,"OK","ERROR","+CME",NULL );
    
    // first we will wait for the AT commands to execute, then subscribe to flow

   ....
```

The command handler V24FCMSetBaudCmdResponseHandler is executed ok (under ADL\_STR\_OK case) and I subscribe within that command handler to the flow. The flow then works fine.The only problem is that the baud rate does not change , it remains at default 115200. So, it appears that the new baud rate request has been rejected , although the command event handler suggests that the command executed correctly.

I have really exhausted all my options , so , please , can anyone suggest a possible bug or perhaps an alternate option ?

---

<div class="post-metadata">

**Author:** ![paruthiv](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@paruthiv](https://forum.sierrawireless.com/u/paruthiv)\
**Post date:** [February 4, 2009, 7:56am UTC](https://forum.sierrawireless.com/t/cannot-programmatically-alter-baudrate/2880/2 "2009-02-04T07:56:17Z")

</div>

Hii  
Have you tried with executing “AT&W” AT command in order to save the settings after u change the baud rate ❓ I think it might solve your problem.
