This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Change baud rate in Bluetopia PM

Other Parts Discussed in Thread: WL1835MOD

Hi,

I am using WL1835MOD with AM335x EVM running Wilink8 Addon package for sdk 7. I am using the Bluetopia PM sample LinuxSPPM application. The default baud rate is 115200. How do I change the baud rate in PM?

In Bluetopia Stack examples I see APIs to change the baud rate. Also the desired baud rate can be given as input parameter to the LinuxSPP sample application.

But I don't find any APIs to change baud rate in Bluetopia PM.  Where is the baud rate set while running a platform manager sample application?

When I run LinuxSPPM application, and give the command SetDevicePower 1, I see the following in the terminal.

uim:@ st_uart_config
uim: signal received, opening /dev/ttyO1
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 3000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:Command complete done
uim:Speed changi(stc): st_tty_open ng to 3000000, 1
uim:@ set_custom_baud_rate

After set_baud_rate() done, there is 'Setting speed to 3000000'. What does it mean by speed here?

Regards,

Harini

  • Hi,

    It is baud rate. 

    For SDK7 the Baud rate is set from the Board file(in our case board-am335xevm.c file). UIM takes it from here and sets it.
    struct ti_st_plat_data wilink_pdata = {
    .nshutdown_gpio = GPIO_TO_PIN(3, 21),
    .dev_name = "/dev/ttyO1",
    .flow_cntrl = 1,
    .baud_rate = 3000000,
    .suspend = plat_kim_suspend,
    .resume = plat_kim_resume,
    .chip_enable = plat_kim_chip_enable,
    .chip_disable = plat_kim_chip_disable,
    };

    ST skips the baud rate command in the firmware(SP or BTS) as it is been set from the board file. So it does not matter if you have baud rate command in you BTS or not if we are using ST.

  • Hi Sundeep,

    Thank you for your response. As SDK 7 has moved to dts, there is no board-am335xevm.c board file. I have changed the baud rate in the dts file, 'am355x-evm.dts'.


    Thanks & Regards,
    Harini