Communication Protocol Suite for .NET 3.0
Communication Protocol Suite for .NET 3.0 | 427 kB
Communication protocols 3964 and 3964R for .NET.
available for .NET 2 - 4.5
source code included in full version
royalty free distribution
INSTALLATION
Add component to Visual Studio toolbox:
1. click "Tools/Choose Toolbox Items..." menu
2. click Browse button
3. select files
"C:\Program Files (x86)\Winsoft\Communication Protocol Suite for .NET\NET4\Design\Winsoft.ComPort.dll"
"C:\Program Files (x86)\Winsoft\Communication Protocol Suite for .NET\NET4\Design\Winsoft.ProtSuite.dll"
Add component to Visual Studio toolbox:
1. click "Tools/Choose Toolbox Items..." menu
2. click Browse button
3. select files
"C:\Program Files (x86)\Winsoft\Communication Protocol Suite for .NET\NET4\Design\Winsoft.ComPort.dll"
"C:\Program Files (x86)\Winsoft\Communication Protocol Suite for .NET\NET4\Design\Winsoft.ProtSuite.dll"
Sending data to the communication device
// writes "AT&V" terminated with CR
comPort.WriteString("AT&V\xd");
comPort.WriteString("AT&V\xd");
Reading data from the communication device
// set timeout
comPort.Timeouts.ReadMultiplier = 100;
comPort.Timeouts.ReadConstant = 100;
try
{
// read 10 characters
string value = comPort.ReadString(10);
// show data
MessageBox.Show(value);
}
catch (ComException ex)
{
// timeout
MessageBox.Show(ex.Message);
comPort.Timeouts.ReadMultiplier = 100;
comPort.Timeouts.ReadConstant = 100;
try
{
// read 10 characters
string value = comPort.ReadString(10);
// show data
MessageBox.Show(value);
}
catch (ComException ex)
{
// timeout
MessageBox.Show(ex.Message);
Home:
http://www.winsoft.sk
[/b]
[b] Only for V.I.P
Warning! You are not allowed to view this text.