I try to make an application who send in the serial port (in 38400 bauds) any packet who arrived from an IP server whith GPRS connection.
I have a probleme to write in serial port after open it with adl_open (In Target Release mode).
If I open UART2, I have a corect handle but when I try to write or to change FlowControl, the application restart.
If I try to open UART1, my handle is set to -1.
Hi, i have the same problem with UART1.
i’m just runing a sample from SDK OpenAT\OS\6.20.04\ADL\samples\UART_access\ on Fastrack Supereme in Target mode.
uart_itf.io_control causes module to restart.
Wavecome support is keepieng silence… , if you have solved this issue please be so kind to share ,
regards
Hello,
Did you mean that sample provided in OpenOS AT SDK not tried and not trusted?
With such support and such documentation its very difficult to make something working, i do my best but i’m very limited in time
P.S. and your replies is less informative than header of the post.
regards
ecoprocess, I had the same problem when I tried to use adl_OpenDevice on UART2. Finally I found that UART port you want to open must be closed with AT+WMFM command (in my case it was opened because at first I used FCM service). I think it is done to prevent using FCM and Device service together. I.e. to open UART1 you should first execute AT+WMFM=0,0,1. And I think that at first you’d need to open UART2 port to have an ability to still execute AT commands.
thanks noim. I have tested it and it works fine.
Be carefull, close state is stored in eeprom. The open AT application should open an other way to accept AT command (UART2 as you suggest).
A reset not reallocate UART1 to FM.