Hello,
I would like to implement water meter data reading throw WavePort using .Net language for PC.
Looking to samples, I didn't found a lot of informations using Profiles to cummunicate with WaveFlow.
If I understand correcty, profiles can be used to acces device functions like reading indexes for a water meter.
Is there any project sample I can use to communicate with WaveFlow ?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't know your level of comprehension of Coronis SDK architecture, but here a quick recall:
The Protocol API of Coronis SDK will allow you to ask a RadioModem (waveport for example) to send Radio Command (request, message, response, etc.). But it's not the SDK Protocol that will tell you the content of the command (payload) to send (for request a Waveflow index, or datalog for example).
For this second part (payload encoding or decoding), you have 2 possibilities:
Instanciate yourself the payload with the expexcted data (in hex). ex: 0x01 for a "GetIndex" -> you will have some example in package waveportprotocol (project com.coronis.sdk.protocol.waveport.example_Java.zip). This solution expects that you know the command supported by your distant wireless device.
Use the SDK Profile API to generate the payload corresponding to a profile behavior. (see project example com.coronis.sdk.profile.testProfile.example_Java.zip in profiles package)
So the profiles will only allow you to generate the "payload" corresponding to a Wireless device command. In all the case, you will need to use the Protocol API to send this command and wait for a response if needed. After the reception of a response, you will have to use again the profile to extract from the payload the contained data.
But concerning the profile API & first implementation, only Java version are currently available. So for .Net context, you can only use the 1. solution.
If you are interested by a Java example, I can show you an example for Waveflow index reading?
Enjoy Coronis SDK. Thierry
Last edit: Thierry CHOMAUD 2013-04-18
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To use the 1st solution, I need to know payloads to send. I think I can use some information present in Java source to know payload to send. Is this the best way ?
It will be very interesting for me to have a working sample for water meter reading in Java (without profiles if possible).
For information, do you plan to release .net version of profiles the next months ?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
To know which payload to send, the best is te refer to the device user manual. If you haven't got it, you can ask your vendor for it.
Attached to this post is an extract of waveflow user guide for "Index reading command".
It means that to read the index, you have to send a payload = new Payload("01").
Have you take a look to the C# project example "Com.Coronis.Sdk.Protocol.Waveport.Example".
Is the example method "ProcessSendRequest" doesn't help you?
Another important information about C# Waveport protocol implementation: there is some bug in the available package (v2.0.0), that have been fixed but that are not already repackage. See the post https://sourceforge.net/p/coronissdk/discussion/pkg_comm/thread/e853f270/ to get the workaround. I hope the new package will be available next week.
Concerning the C# Profile development, yes it's in our roadmap, but we have no availability currently. The workload of develoment is estimated to 15 days. Are you interested to help us to accelerate this development?
Hello,
I would like to implement water meter data reading throw WavePort using .Net language for PC.
Looking to samples, I didn't found a lot of informations using Profiles to cummunicate with WaveFlow.
If I understand correcty, profiles can be used to acces device functions like reading indexes for a water meter.
Is there any project sample I can use to communicate with WaveFlow ?
Thanks.
Hello,
I don't know your level of comprehension of Coronis SDK architecture, but here a quick recall:
The Protocol API of Coronis SDK will allow you to ask a RadioModem (waveport for example) to send Radio Command (request, message, response, etc.). But it's not the SDK Protocol that will tell you the content of the command (payload) to send (for request a Waveflow index, or datalog for example).
For this second part (payload encoding or decoding), you have 2 possibilities:
So the profiles will only allow you to generate the "payload" corresponding to a Wireless device command. In all the case, you will need to use the Protocol API to send this command and wait for a response if needed. After the reception of a response, you will have to use again the profile to extract from the payload the contained data.
But concerning the profile API & first implementation, only Java version are currently available. So for .Net context, you can only use the 1. solution.
If you are interested by a Java example, I can show you an example for Waveflow index reading?
Enjoy Coronis SDK. Thierry
Last edit: Thierry CHOMAUD 2013-04-18
Ok, clearer.
To use the 1st solution, I need to know payloads to send. I think I can use some information present in Java source to know payload to send. Is this the best way ?
It will be very interesting for me to have a working sample for water meter reading in Java (without profiles if possible).
For information, do you plan to release .net version of profiles the next months ?
Thanks.
Hi,
To know which payload to send, the best is te refer to the device user manual. If you haven't got it, you can ask your vendor for it.
Attached to this post is an extract of waveflow user guide for "Index reading command".
It means that to read the index, you have to send a payload = new Payload("01").
Have you take a look to the C# project example "Com.Coronis.Sdk.Protocol.Waveport.Example".
Is the example method "ProcessSendRequest" doesn't help you?
Another important information about C# Waveport protocol implementation: there is some bug in the available package (v2.0.0), that have been fixed but that are not already repackage. See the post https://sourceforge.net/p/coronissdk/discussion/pkg_comm/thread/e853f270/ to get the workaround. I hope the new package will be available next week.
Concerning the C# Profile development, yes it's in our roadmap, but we have no availability currently. The workload of develoment is estimated to 15 days. Are you interested to help us to accelerate this development?
Thanks a lot for these informations.
Maybe I can test future C# developments related to profiles.