gurux.serial.win64

gurux.serial.win64 package contains resources that are needed for Gurux Serial components for Windows x64 environment.

License

License

GroupId

GroupId

org.gurux
ArtifactId

ArtifactId

gurux.serial.win64
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

gurux.serial.win64
gurux.serial.win64 package contains resources that are needed for Gurux Serial components for Windows x64 environment.
Project URL

Project URL

http://www.gurux.org
Project Organization

Project Organization

Gurux Ltd.
Source Code Management

Source Code Management

https://github.com/gurux/gurux.serial.java/

Download gurux.serial.win64

How to add to project

<!-- https://jarcasting.com/artifacts/org.gurux/gurux.serial.win64/ -->
<dependency>
    <groupId>org.gurux</groupId>
    <artifactId>gurux.serial.win64</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.gurux/gurux.serial.win64/
implementation 'org.gurux:gurux.serial.win64:1.0.1'
// https://jarcasting.com/artifacts/org.gurux/gurux.serial.win64/
implementation ("org.gurux:gurux.serial.win64:1.0.1")
'org.gurux:gurux.serial.win64:jar:1.0.1'
<dependency org="org.gurux" name="gurux.serial.win64" rev="1.0.1">
  <artifact name="gurux.serial.win64" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.gurux', module='gurux.serial.win64', version='1.0.1')
)
libraryDependencies += "org.gurux" % "gurux.serial.win64" % "1.0.1"
[org.gurux/gurux.serial.win64 "1.0.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

See An Gurux for an overview.

Join the Gurux Community or follow @Gurux for project updates.

Open Source GXSerial media component, made by Gurux Ltd, is a part of GXMedias set of media components, which programming interfaces help you implement communication by chosen connection type. Our media components also support the following connection types: network, terminal.

For more info check out Gurux.

We are updating documentation on Gurux web page.

If you have problems you can ask your questions in Gurux Forum.

Build

If you want to build example you need Nuget package manager for Visual Studio. You can get it here: https://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c

Simple example

Before use you must set following settings:

  • PortName
  • BaudRate
  • DataBits
  • Parity
  • StopBits

It is also good to listen following events:

  • OnError
  • OnReceived
  • OnMediaStateChange
GXSerial cl = new GXSerial();
cl.PortName = Gurux.Serial.GXSerial.GetPortNames()[0];
cl.BaudRate = 9600;
cl.DataBits = 8;
cl.Parity = System.IO.Ports.Parity.Odd;
cl.StopBits = System.IO.Ports.StopBits.One;
cl.Open();

Data is send with send command:

cl.Send("Hello World!");

In default mode received data is coming as asynchronously from OnReceived event.

cl.OnReceived += new ReceivedEventHandler(this.OnReceived);

Data can be send as syncronous if needed:

lock (cl.Synchronous)
{
    string reply = "";
    ReceiveParameters<string> p = new ReceiveParameters<string>()
    //ReceiveParameters<byte[]> p = new ReceiveParameters<byte[]>()
    {
       //Wait time tells how long data is waited.
       WaitTime = 1000,
       //Eop tells End Of Packet charachter.
       Eop = '\r'
    };
    cl.Send("Hello World!", null);
    if (gxNet1.Receive(p))
    {
	reply = Convert.ToString(p.Reply);
    }
}
org.gurux

Gurux Ltd

Versions

Version
1.0.1