programming help on Visual Studio .Net (Baud Rate change)

Questions, FAQ, Feature Requests and Troubleshooting for Airconsole

Moderator: sergey

Kapil_16
Posts: 2
Joined: Sat Aug 23, 2014 9:13 am

programming help on Visual Studio .Net (Baud Rate change)

Postby Kapil_16 » Sat Aug 23, 2014 9:29 am

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

daniel
Posts: 127
Joined: Wed Jul 27, 2011 9:33 am

Re: programming help on Visual Studio .Net (Baud Rate change

Postby daniel » Sat Aug 23, 2014 10:02 am

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

Kapil_16
Posts: 2
Joined: Sat Aug 23, 2014 9:13 am

Re: programming help on Visual Studio .Net (Baud Rate change

Postby Kapil_16 » Tue Aug 26, 2014 6:30 am

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.


Return to “Airconsole”

Who is online

Users browsing this forum: No registered users and 142 guests