[solved]UART.h // custom Bautrate in newest SDK

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

[solved]UART.h // custom Bautrate in newest SDK

Postby rudi » Tue May 12, 2015 7:03 am

edit [solved]
sorry,
have found the uart.h in examples in IoT_Demo Folder
-> include/driver
all ok.
my mistake,i have wounder me, why the uart.h ist not in AT demo ;-)))
..
best wishes
rudi ;-)
its time for holiday ;-) ;-) ;-)



hi
for longer time i do not need uart code's but now, i need this again with newer sdk, and i have seen, that uart.h is not longer availabel / hidden ..

is there a possible choice for API or a other point to add a custom baudrate, because AT is still not longer open source and uart.h is gone :)... hidden .. :)

example earlier sdk version was this possible like this way:

add a custom baudrate in uart.h

Code: Select all

typedef enum {
BIT_RATE_9600   = 9600,
..
..
..
// example Custom
BIT_RATE_80000  = 80000,  // Only example !! no really functionally bautrate..
..
..
..
..
BIT_RATE_921600 = 921600

}  UartBautRate;



then in user init

Code: Select all


// This changed the Bautrate to custom
uart_init(BIT_RATE_80000, BIT_RATE_115200);




how we can do this now in actually sdk?
thank you!

best wishes
rudi ;-)


// edit

In AT Command Construction there is a AT Command possible:

AT+UART_DEF=80000,8,1,0,0

how i can do this in api or user code from scratch.
thank you!

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: Google [Bot] and 9 guests