Page 1 of 1
programming help on Visual Studio .Net (Baud Rate change)
Posted: Sat Aug 23, 2014 9:29 am
by Kapil_16
Hi Friends,
I am looking for programming help with visual studio .net. I used Winsock control on my desktop application to connect with Airconsole using ip address 192.168.10.1. I want to change Airconsole's Serial setting, so I can change baud rate from 9600 to 115200. Please let me know if you have any questions.
Thanks.
Kapil
Re: programming help on Visual Studio .Net (Baud Rate change
Posted: Sat Aug 23, 2014 10:02 am
by daniel
Hello,
We haven't published a .Net example for Airconsole yet, but you can use the RFC2217 telnet extensions to negotiate baud rate.
Assuming you are connected to port 3696 on the Airconsole, sending the following byte sequence will change the baud rate to 115200 (0x0001C200)
0xFF, 0xFA, 0x2C, 0x01, 0x00, 0x01, 0xC2, 0x00, 0xFF, 0xF0
Note: If you are instead connected to the raw-serial port on port 2167, then it is not possible to change the baudrate in-band; it needs to be preconfigured on the Airconsole web interface
Re: programming help on Visual Studio .Net (Baud Rate change
Posted: Tue Aug 26, 2014 6:30 am
by Kapil_16
Hi Daniel,
Yes, Its working now.
I use same WinSock.SendData() method to send byte sequence and it changes the baud rate to 115200.
Here are the codes that i used to apply baud rate change on Airconsole,
.
.
.
.
Dim baudchng() As Byte = {&HFF, &HFA, &H2C, &H1, &H0, &H1, &HC2, &H0, &HFF, &HF0}
Winsock1.SendData(baudchng)
.
.
.
.
I really appreciate, Thanks.