115200 baudrate

5 posts / 0 new
Last post
Anton
115200 baudrate

Good day!

I apologize if topic is dublicated, but searching through forum didn't bring any result.
I cloned gurux.dlms.java git repo, installed gurux.dlms.client.example.java Maven project in Eclipse and
1) tried to modify BaudRate.java file to get 115200 baudrate available:

public enum BaudRate {
/**
* Baudrate is 115200.
*/
BAUD_RATE_115200(115200),

/**
* Baudrate is 57600.
*/
BAUD_RATE_57600(57600),

/**
* 38,400 baud.
*/
BAUD_RATE_38400(38400),

...

2) modified sampleclient.java:

l.75:
GXSerial serial = (GXSerial) settings.media;
if (settings.iec) {
serial.setBaudRate(BaudRate.BAUD_RATE_300);
serial.setDataBits(7);
serial.setParity(Parity.EVEN);
serial.setStopBits(StopBits.ONE);
} else {
serial.setBaudRate(BaudRate.BAUD_RATE_115200);
serial.setDataBits(8);
serial.setParity(Parity.NONE);
serial.setStopBits(StopBits.ONE);
}

But due to precompiled jar libs ( supposedly, I'm not experienced Java&Maven user, sorry ) got

"Unresolved compilation problem:
BAUD_RATE_115200 cannot be resolved or is not a field"

Please help me to solve this issue.

Best regards,
Anton Smirnov
asmirnov@opk-bulat.ru

Kurumi
Kurumi's picture

Good day Anton,

Baudrates are added to gurux.common, but Github is not answer for some reason and we can't release source code to GitHub.

We'll try to release a new version as soon as Github starts to work again.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

Anton

Hello, Mikko.

Thanks a lot, waiting for new version gurux.common on github.

Best regards,
Anton Smirnov
asmirnov@opk-bulat.ru

Anton Smirnov

Anton

Hello, Mikko.

I can see gurux.common v1.0.17 on github. But importing pom.xml from gurux.dlms.java to Eclipse still generates gurux.common-1.0.16.jar file without new baudrates. Please notice what I do wrong. Or maybe some dependencies have to be renewed in gurux.dlms.java and gurux.serial.java ?

Best regards,
Anton Smirnov
asmirnov@opk-bulat.ru

Anton Smirnov

Kurumi
Kurumi's picture

Hello Anton,

New version from Gurux media components for Java is released. Get the latest versions.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi