| Author |
Message |
|
|
Posted: May 28, 2011 - 07:14 PM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
Could you please tell me where is located/documented the 3290's code?
It is in the BitCloud's BSP package for the Raven board. But it is unmodified copy of some standard package, I have no idea which one. |
|
|
| |
|
|
|
|
|
Posted: May 30, 2011 - 09:51 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Hi, If I program the coordinator with:
CS_EXT_PANID = 0x00000001LL
On wsndemo I see 0x60CF
why is that?
I must specify that number with CS_WriteParameter(CS_EXT_PANID_ID, &value)
? |
|
|
| |
|
|
|
|
|
Posted: May 30, 2011 - 10:18 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Hi, If I program the coordinator with:
CS_EXT_PANID = 0x00000001LL
On wsndemo I see 0x60CF
why is that?
The same thing is happening using CS_WriteParameter(CS_EXT_PANID_ID, &value)
? |
|
|
| |
|
|
|
|
|
Posted: May 31, 2011 - 07:02 AM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
CS_EXT_PANID = 0x00000001LL
On wsndemo I see 0x60CF
why is that?
I suspect that 0x60cf is a short PAN ID, while CS_EXT_PANID assigns extended PAN ID. |
|
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:37 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Thanks for the last, wsndemo shows the network panid as panid, that's why I was seeing a randomly address.
Another question, this is related to wsndemo (no modifications made:
When transmitting, the frame is stored in the struct
appMessage.data.meshbean.something
but when receiving? are you using a "clone" struct called msg?
AppMessage_t *msg = (AppMessage_t *)indData->asdu;
is that correct? |
|
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:44 PM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
are you using a "clone" struct called msg?
AppMessage_t *msg = (AppMessage_t *)indData->asdu;
msg is just a pointer, received message array is type-casted to the pointer to AppMessage_t structure.
No memory being allocated for msg here. |
|
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:49 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
| ahh ok, so if I have a message already loaded in the AppMessage_t structure, it's not affected because im just using the struct format to read the memory space pointed by msg? |
|
|
| |
|
|
|
|
|
Posted: Jun 03, 2011 - 02:52 PM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
ahh ok, so if I have a message already loaded in the AppMessage_t structure, it's not affected because im just using the struct format to read the memory space pointed by msg?
correct. |
|
|
| |
|
|
|
|
|
Posted: Jun 04, 2011 - 03:37 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Time ago, watching the meshnetics software similitude’s to wsndemo, I was wondering if they bought some class of source code to modify, and then, develop that tool.
Does Atmel offer that code? (as open source or paid? ) |
|
|
| |
|
|
|
|
|
Posted: Jun 04, 2011 - 05:09 PM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
Time ago, watching the meshnetics software similitude’s to wsndemo, I was wondering if they bought some class of source code to modify, and then, develop that tool.
Does Atmel offer that code? (as open source or paid? )
I don't know what you are talking about. Can you elaborate? |
|
|
| |
|
|
|
|
|
Posted: Jun 05, 2011 - 08:28 AM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
I'm talking about this software:
http://www.meshnetics.com/images/WSNmonitor.jpg
It's an ATMEL's WSNdemo clone with different brand and few more (or different) features.
My question is: Is there any way to get the source code?
Is this code paid? or freeware?
This question comes up because, once you modify the ASDU on wsndemo firmware, all program's features are not compatible with the modifications made therefore they are not displayed on pc.... |
|
|
| |
|
|
|
|
|
Posted: Jun 05, 2011 - 08:32 AM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
It's an ATMEL's WSNdemo clone with different brand and few more (or different) features.
This software was always called WSN Monitor, and it is called so in Atmel's reincarnation. WSNDemo is the name for the embedded part.
troyka wrote:
My question is: Is there any way to get the source code?
Nope, source code is not available. |
|
|
| |
|
|
|
|
|
Posted: Jun 06, 2011 - 05:09 AM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Yes, you are right about the names...
sturday night (4AM) + a very "little" drink = "WSNwhat??"
Anyway, thanks for clarify the source code matter. |
|
|
| |
|
|
|
|
|
Posted: Jun 06, 2011 - 04:27 PM |
|


Joined: Jan 20, 2011
Posts: 115
Location: Montreal, QC., Canada
|
|
| troyka, may be this can clarify a little. Atmel bought Meshnetics about 2-3 years ago. That is where all the Atmel ZigBee software came from. Correct me if I am wrong about the details. It's all Atmel now. |
|
|
| |
|
|
|
|
|
Posted: Jun 06, 2011 - 04:51 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Yes, you are right.
I saw that "news" but for me wasn't clear yet, who designed first WSNmonitor and who modified...
My first thought was "Meshnetic buy the licence to ATMEL"
maybe we can buy a licence too...
But it seems that things happened just the opposite way |
|
|
| |
|
|
|
|
|
Posted: Jun 21, 2011 - 08:53 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
Hi, any idea the purpose of initSubStateMachine();
OTAU related? |
|
|
| |
|
|
|
|
|
Posted: Jun 21, 2011 - 09:01 PM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
Hi, any idea the purpose of initSubStateMachine();
Initializes sub-statemachine. Application logic is divided between 2 state machines - main one, that handles network start/rejoin/leave, and device specific one, that handles application logic (reads sensors, sends data, etc) when the main one is in the joined state.
Quote:
OTAU related?
Not at all. |
|
|
| |
|
|
|
|
|
Posted: Jun 21, 2011 - 09:06 PM |
|


Joined: Oct 28, 2009
Posts: 179
|
|
I'm guessing here but just in case here go the question:
The variable "appState" is related to the first state machine?
and the variables
"event" and "status" are related to the second one? |
|
|
| |
|
|
|
|
|
Posted: Jun 22, 2011 - 11:45 AM |
|


Joined: Apr 15, 2009
Posts: 4979
Location: San Jose, CA
|
|
|
troyka wrote:
The variable "appState" is related to the first state machine?
Correct. It is a state if the main state machine.
troyka wrote:
and the variables "event" and "status" are related to the second one?
No, "event" is not a variable, it is a function parameter, it is an event state machine makes transition on.
And there is no "status" variable. |
|
|
| |
|
|
|
|
|
Posted: May 22, 2012 - 11:39 PM |
|

Joined: Feb 23, 2012
Posts: 11
|
|
Hello,
I hope this topic isn't dead...
(I working with Bitcloud - WSNdemoApp in Ravens boards)
So, supose I have two ravens (both AVRRAVEN)and i have configure each coordinator and EndDevice.
Well, until here everything is great! My net is created!
But how can I send a frame from coordinator to endDevice? I can send frame from endDevice changing
WSNEndDeviceApp.c in "INITIAL_DEVICE_STATE":
messageParams.asduLength = 8;
messageParams.asdu = (uint8_t *)("ABCDEF ");
messageParams.APS_DataConf = APS_DataConf;
i can't see how do the same with the coord...
maybe i must create another EndPoint... |
_________________ Marco Alves
|
| |
|
|
|
|
|