| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 26/12/2010 01:49:27
|
cemer
Initiate
Joined: 15/12/2010 08:34:58
Messages: 15
Offline
|
Hi everyone,
I am planning to add my weather station into my Mango installation. Data comes through a specific protocol, either on serial or IP channels. There are several data points which will be automatically updated as soon as the most recent data pack comes and parsed.
Is there a how-to which tells the steps? How much effort would be involved for the implementation?
Many thanks.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 07/01/2011 13:07:17
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1502
Offline
|
Is it a custom protocol?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 08/01/2011 02:23:00
|
cemer
Initiate
Joined: 15/12/2010 08:34:58
Messages: 15
Offline
|
Yes it is a custom protocol. However it is simple.
There are several command response pairs.
One command fetches the all current weather data. The response needs to be parsed for individual data points.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 03:08:26
|
electronf
Initiate
Joined: 09/01/2011 02:59:40
Messages: 5
Offline
|
I talk to my weather station through mango, however I have a LinkSysNSLU2 connected to the weather station reciever and I retrieve the data from it using the http receiver data source.
| Filename |
weather.jpg |
Download
|
| Description |
|
| Filesize |
93 Kbytes
|
| Downloaded: |
18 time(s) |
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 10:35:35
|
cemer
Initiate
Joined: 15/12/2010 08:34:58
Messages: 15
Offline
|
I already decided to inspect the HTTP receiver source for some other reasons.
Since my weather station is already on serial port I'd prefer to keep it directly attached to my pc.
Any simple guide for a single command single response serial port communicating data source?
Many thanks...
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 10:44:55
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1502
Offline
|
So, each point would have a different command? Or, would there be a single request/response that provides data for multiple points?
Mango doesn't currently have a data source for arbitrary request/response like this, but it could be easily built. Especially in M2M2, in which it could be customized to your needs.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 10:54:32
|
cemer
Initiate
Joined: 15/12/2010 08:34:58
Messages: 15
Offline
|
On demand "single command-single response" provides all the instantaneos readings. The response contains all the data in packed form and needs to be parsed accordingly. Just before the command there has to be a CR to wake up the station's console. And, I believe the timeouts should also be handled by the datasource in case the console does not response within the specified time.
Thanks again.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 11:00:06
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1502
Offline
|
This can all be done, and indeed there are already data sources that work in similar ways (such as modbus). Still, it would take a custom data source to implement the specifics. The first question is, do you want to build it yourself, or get someone else to do it?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 11:14:48
|
cemer
Initiate
Joined: 15/12/2010 08:34:58
Messages: 15
Offline
|
I think I can do it. However, before going into coding I'd like to understand some basics about the data source internals, so that I can have something compatible with future releases...
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 09/01/2011 14:59:37
|
electronf
Initiate
Joined: 09/01/2011 02:59:40
Messages: 5
Offline
|
Perhaps a howto for a simple custom datasource would be in order.
I am using modbus for my kiln however I have a number of other devices I want to hook up and would prefer to talk to directly.
Like the Velleman K8061 USB Interface Board. Id like not to have to write a database pickup script or a http/cgi interface.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 11/01/2011 15:40:41
|
kc8nod
Initiate
Joined: 07/01/2011 15:18:13
Messages: 1
Offline
|
Perhaps a howto for a simple custom datasource would be in order.
Agreed.
I've got several different devices, serial and GPIB, each with custom protocols that I'd like to interface with.
An example of a custom datasource as well as an API document would be great.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 13/01/2011 12:43:55
|
oja
Initiate
Joined: 07/10/2010 03:49:54
Messages: 40
Offline
|
Hi,
I am solving similar problem now. I don't want to build all Mango with my own datasource and I don't have time for studying, how to datasources works.
But I have small idea. I have developed small JAR for connecting to my device via TCP/IP, parsing Oxymat (Elan) protocol.
This JAR I am using in JAVASCRIPT in MetaDataSource.
It works. It is not done yet, but works.
Oja
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 03/02/2011 20:41:09
|
victor-br
Initiate
![[Avatar]](/forum/images/avatar/8c19f571e251e61cb8dd3612f26d5ecf.jpeg)
Joined: 28/02/2010 08:43:57
Messages: 8
Offline
|
Hello,
we have come up with a detailed step-by-step on adding custom protocols.
it was written in portuguese, unfortunatelly it would take too long to translate it. But i guess google could translate it for you
well here it is, good luck.
https://sites.google.com/a/certi.org.br/certi_scadabr/home/minicursos/scada
small notice: ScadaBR is in fact heavily based on mango, so just replace "scadabr" for "mango" all over the docs. be happy
|
---
Victor Rocha
www.scadabr.org.br |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 04/02/2011 06:29:10
|
posztos
Initiate
Joined: 05/11/2009 08:45:37
Messages: 12
Offline
|
@Victor:
Is ScadaBR planning to upgrade to M2M2? Or do you think your developments will show up among M2M2 modules?
Regards,
Greg
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 07/02/2011 05:45:32
|
fmunhoz
Initiate
Joined: 26/01/2010 10:08:18
Messages: 49
Offline
|
Not sure about ScadaBR upgrading to M2M2 as long as M2M2 seems to be a commercial product.
I am also interested on this question and waiting for an official answer from ScadaBR team.
|
Best Regards
|
|
|
 |
|
|