Don't comment the topic if you have a new question.
You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.
By Gurux Ltd, 24 November, 2009
GXSerial offers an easy way to build multithreaded, serial communication applications.
Using the GXSerial component with different development tools, such as Access, Delphi, Visual Basic, Java or Visual C++ is very easy. With component you get a Visual Basic sample that shows how to use the communication technique.
Gurux communication medias have been made on the Windows API interface. Due to this, the components are very efficient and do not require external libraries or DLL files to operate.
For C# it's easy.
You just lock component like this.
GXSerial serial = new GXSerial("COM1");
lock(serial.SyncRoot)
{
//Send data what you want to send.
For sync send you can do like this.
lock (serial.Synchronous)
{
ReceiveParameters<string> p = new ReceiveParameters<string>()
{
Eop = Terminator,
WaitTime = WaitTime
};
serial.Send("Hello world!", null);
serial..Receive(p);
}
}
I want to connect multiple meters to the dlms-master via a single serial port.For that I am using RS-485 as it is designed to communicate between multiple devices connected to a single data line.So what modifications are needed in dlms-master(gurux c library based) application?.
multithreaded
Hello,
You said "multithreaded" ,is there a demo for that ? thanks.
multithreaded
Hi,
We do not have demo. What programming language you want to use?
BR,
Mikko
multithreaded
C#.Then is there any sample code , tutorial ,documentations ?
thank you.
multithreaded
Hi,
For C# it's easy.
You just lock component like this.
GXSerial serial = new GXSerial("COM1");
lock(serial.SyncRoot)
{
//Send data what you want to send.
For sync send you can do like this.
lock (serial.Synchronous)
{
ReceiveParameters<string> p = new ReceiveParameters<string>()
{
Eop = Terminator,
WaitTime = WaitTime
};
serial.Send("Hello world!", null);
serial..Receive(p);
}
}
BR,
Mikko
}
Sir, Do you have delphi
Sir, Do you have delphi source code about SNRM, UA, AARQ, AARE, Get-Request, Get-Response?
If you have, please let me get it.
Thanks a lot.
Dear Sir,
Dear Sir,
Please, if you have a new question, create a new topic.
You can get source codes to Delphi from GitHub.
https://github.com/Gurux/Gurux.DLMS.delphi
BR,
Mikko
I want to connect multiple
I want to connect multiple meters to the dlms-master via a single serial port.For that I am using RS-485 as it is designed to communicate between multiple devices connected to a single data line.So what modifications are needed in dlms-master(gurux c library based) application?.
Best Regards,
Faizy.
Hi Faizy,
Hi Faizy,
Please, if you have a new question, create a new topic. I'll answer your question there.
http://www.gurux.fi/ForumRules
BR,
Mikko