I'm using sample provided in C# with these librairies updated (files get from forum) :
Com.Coronis.Sdk.Domain.dll, Com.Coronis.Sdk.Protocol.Api.dll, Com.Coronis.Sdk.Protocol.Waveport.dll
I'm not able to communicate with WaveFlow water meter, communication throw Bluetooth WapePort seems to be Ok (blue led flashing).
You can see my actual trace :
19/04/2013 - 15:53:28: process local node service: start
15:53: process local service status: OK_PROTOCOL_SUCCESS
19/04/2013 - 15:53:28: process local node service response: 510013634B304627;STACK_SERVICE
19/04/2013 - 15:53:28: process send request: start
19/04/2013 - 15:53:33 - 15:53:33: process send request exception: Unknown protocol error occured with code (61) : KO_RADIO_TRANSMISSION_FAILURE
19/04/2013 - 15:53:33: process send message: start
19/04/2013 - 15:53:36: process send message exception: Unknown protocol error occured with code (61) : KO_RADIO_TRANSMISSION_FAILURE
Pres <enter> to quit</enter>
What I'm using in code to connect to WaveFlow "00534-07-03200724" :
private static IRadioAddress destinationAddress = new RadioAddress("21607A30D6D4");
...
private static IPayload payload = new Payload("01");
.
Do you know why I get this error ?
PS : I didn't read anywhere that libpthread-2.dll is needed for driver to work correctly. I downloaded it because driver was not working. Maybe it can be usefull to inform user about this library.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the libpthread-2.dll. It's mention in serialdriver, but not in protocol.
Concerning your problem, can you add a serialdriver spy listener and return me the trace:
Your error means that the radio transmission between your radio modem and your waveflow fails. Your communication with your Waveport is OK because the local node service request test is OK.
Serial driver spy listener Class definition
publicclassSerialDriverSpyListener:ISerialDriverSpyListener{privateStringtag="";publicSerialDriverSpyListener(){}publicSerialDriverSpyListener(Stringtag):base(){this.tag=tag;}publicvoidReceivedFrame(ISerialFramereceivedFrame){StringBuildersb=newStringBuilder(tag+"-ReceivedSpyframe:"); sb.Append(receivedFrame.ToString()); Console.Out.WriteLine(TestsGeneric.printCurrentDate() + sb.ToString()); } public void SentFrame(ISerialFrame sentFrame) { StringBuilder sb = new StringBuilder(tag + "-Spysendframe:");sb.Append(sentFrame.ToString());Console.Out.WriteLine(TestsGeneric.printCurrentDate()+sb.ToString());}}
Serial driver spy usage
RS232Driver sd = new RS232Driver();
sd.AddSerialDriverSpyListener(new SerialDriverSpyListener());
...
Waveport wp = new Waveport();
wp.SetSerialDriverInstance(sd);
...
Last edit: Thierry CHOMAUD 2013-04-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After the send of 2021607A30D6D401, you receive 310101, that confirm that the device @21607A30D6D4 has not been found.
But I think you have a error in your hexadecimal conversion of radio address. "00534-07-03200724" -> "02160730D6D4".
I'm using sample provided in C# with these librairies updated (files get from forum) :
Com.Coronis.Sdk.Domain.dll, Com.Coronis.Sdk.Protocol.Api.dll, Com.Coronis.Sdk.Protocol.Waveport.dll
I'm not able to communicate with WaveFlow water meter, communication throw Bluetooth WapePort seems to be Ok (blue led flashing).
You can see my actual trace :
What I'm using in code to connect to WaveFlow "00534-07-03200724" :
.
Do you know why I get this error ?
PS : I didn't read anywhere that libpthread-2.dll is needed for driver to work correctly. I downloaded it because driver was not working. Maybe it can be usefull to inform user about this library.
Thanks.
Thanks for the libpthread-2.dll. It's mention in serialdriver, but not in protocol.
Concerning your problem, can you add a serialdriver spy listener and return me the trace:
Your error means that the radio transmission between your radio modem and your waveflow fails. Your communication with your Waveport is OK because the local node service request test is OK.
Serial driver spy listener Class definition
Serial driver spy usage
Last edit: Thierry CHOMAUD 2013-04-19
Trace :
After the send of 2021607A30D6D401, you receive 310101, that confirm that the device @21607A30D6D4 has not been found.
But I think you have a error in your hexadecimal conversion of radio address. "00534-07-03200724" -> "02160730D6D4".
Here a java code for radio@ translation:
Another possibility is directly to use following constructor for radioAddress:
Last edit: Thierry CHOMAUD 2013-04-19
Thanks a lot, I made a mistake
I didn't understand correctly radio adress conversion.
It's now working good, I got response from WaveFlow.
C# radio conversion :