Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gopikrishnan
PostPosted: Feb 06, 2012 - 11:32 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


Hi,
I have formed a network with two RCB128RFA1(with Sensor termninal board) boards and STK600-Atmega128RFA1-EK1(without any Baseboard). In the WSN Monitor software i am able to see the network.
Now i have to check how data transmission occurs. as the board has no on board sensors, WSN software is not showing any values. I want some constant values to be transmitted instead of temperarature, light and battery values. I tried changing appmessage.data.temperature=10. But it is not working. How to check data transmissions in WSN Demo.

Thanks,
Gopi Krishnan A.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 06, 2012 - 09:32 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

You need to change it at the place where they are filled - WSNSensorManager.c.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 07, 2012 - 04:23 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


Thanks alexru for your reply.
I did that in the WSNSensormanager.c file only. But it is not working.
At the same time i tried with sending some characters, In the terminal software i am able to see that characters.
In the WSN Monitor software i selected the node parameters, node history and preferences. But it is not showing
anything. In the Node history tab also it is not showing the parameters tab.

I want to filter the data(temperature,light and battery) and send it to the terminal. How to do this in
the APS_DataIndcoord() function. where the values are received in the APS_DataInd_t IndData variable.
What does the IndData->asdu actually holds. It is not that much clear in the API reference manual.


Thanks,
Gopi Krishnan A.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 07, 2012 - 04:23 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

gopikrishnan wrote:
I did that in the WSNSensormanager.c file only. But it is not working.
What exact changes have you made?

gopikrishnan wrote:
At the same time i tried with sending some characters, In the terminal software i am able to see that characters.
How exactly you are sending characters?

gopikrishnan wrote:
What does the IndData->asdu actually holds. It is not that much clear in the API reference manual.
It is application payload, just arbitrary data that application on the other end decided to send. For WSN Demo this application is described by the structure named AppMessage_t.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 08, 2012 - 04:30 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


In th WSNSensorManager.c i edited the temperaturedataReady() function as appmessage.data.meshbean.temperature = 11 or 'G' in the if(result) condition.

I sent 'G' character instead of data; It appeared in the terminal software in ascii mode.

i created a network with Bitcloud for megarf using RF4CE kit and ATmega128RFA1-EK1. I got one BeeProto board which has ZigBit ATZB-24-A2,
I programmed it using serial bootloader the image for EndDevice(WSNDemo_EndDev_Rf230_Amp.srec). But this one is not joining the network which i
formed using RF4CE(BitCloud for mega rf). It is not showing that node in the WSNMonitor software. why it is not joining the network.

If i want to add some application to that zigbit module(BeeProto Board) which solution file(For AVR Studio 5) i have to use and where i have to add my code.
 
 View user's profile Send private message  
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 08, 2012 - 03:14 PM
Rookie


Joined: Jan 17, 2012
Posts: 46


I tried programming the BeePROTO board using ISP with correct fuse settings, Even then it is not working and not showing in the WSN Monitor software.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 08, 2012 - 04:36 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

gopikrishnan wrote:
In th WSNSensorManager.c i edited the temperaturedataReady() function as appmessage.data.meshbean.temperature = 11 or 'G' in the if(result) condition.
Are you sure that this (result) condition is meet? Try changing it unconditionally. There are no miracles, it should work.

gopikrishnan wrote:
I programmed it using serial bootloader the image for EndDevice(WSNDemo_EndDev_Rf230_Amp.srec). But this one is not joining the network which i
formed using RF4CE(BitCloud for mega rf).
First of all you need an image without amplifier (_Amp). And file name suggests that you are using old version of BitCloud. Please download a recent one.

gopikrishnan wrote:
If i want to add some application to that zigbit module(BeeProto Board) which solution file(For AVR Studio 5) i have to use and where i have to add my code.

You need to select project "MeshBean" and configuration that reflects your needs.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 09, 2012 - 03:52 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


It is meeting the result condition.

I downloaded the latest Bitcloud only.
Its my misunderstanding that i used the amplification image file. I tried the image file that is without amplification also. But it is not working.

Could you send me a image file for BeePROTO board which will act as a EndDevice and join the WSN Demo.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 09, 2012 - 04:12 PM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

gopikrishnan wrote:
It is meeting the result condition.
Then you are doing something wrong. Please describe step-by-step what you are doing starting from freshly downloaded SDK. Otherwise I can't help you.

gopikrishnan wrote:
I tried the image file that is without amplification also. But it is not working.
What file you've used this time?

gopikrishnan wrote:
Could you send me a image file for BeePROTO board which will act as a EndDevice and join the WSN Demo.
I've never seen this board, how would I know what files work on it? Have you tried it with default SerialNet image? Have you checked fuses?
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 10, 2012 - 03:50 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


Now it is somehow working(after setting the fuse bits right and selecting the right file).
But having this problem:I loaded the WSNDemo_Router_Rf230.hex file now in the BeePROTO Board. In the WSNDemo i configured the coordinator(RCB128RFA1) to have only two routers and no end devices. In the software it shows the coordinator, if i switch on the BeePROTO board it joins the network now and then the End device is also joining. But it is not showing the router in the Monitor software. it shows only the coordinator and the end device without any link. why it is showing like this even i loaded the same WSN Demo application in all the three boards. Does the WSN Demo in Bitcloud for Zigbit and Bitcloud for megaRF uses different data formats.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 10, 2012 - 04:14 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

What end device image? Where it came from? They use the format, but when you creating images make sure to set different CS_UID for each image.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 13, 2012 - 04:52 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


End Device i used the ATmega128RFA1-STK600 board. That is working anyhow. I want a solution for this ZigBit board only. Even it has joined the network it is not in the WSN Monitor. I used the WSNDemo_Router_Rf230.hex. why it is so.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 13, 2012 - 04:57 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

The only reason I can imagine now is that CS_UID values are the same for two images. WSNDemo_Router_Rf230.hex has CS_UID set to 2. Other images must have different non-zero values.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 13, 2012 - 06:44 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


ok... If i want to change the CS_UID value, which solution file in the WSN Demo i can use. In the application there are only two types of solution files available. one for meshbean boards and the other for RCB boards(AVR Solution file). which one i have to use to modify the application. Not only for the BeePROTO board if i have my own zigbit board which one i have to start with and in the configuration.h file what are the configurations i have to set inorder to make the board work.which make file i have to use.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 13, 2012 - 06:47 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

Use MeshBean one, it was a development board for ZigBit. Use "All" Makefile. And you need at least select device type in configuration.h, change other settings if you need.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 13, 2012 - 06:56 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


I tried with meshbean only. If i want to use the UART_TXD and UART_RXD pins (13 and 14 pin of ZigBit) to communicate with the PC WSN Monitor software. If i configure it as coordinator, which APP_INTERFACE i have to use and which UART channel i have to select.
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 13, 2012 - 07:05 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

Leave everything by default. Would not it be easier just to try?

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 13, 2012 - 07:17 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


I know that. I am not just trying. I spent one full day in that, I changed the configurations and also tried using different combinations. it is not working. what about the BSP_MNZB_EVB_SUPPORT.

what you are saying is, it is enough only to change the device type and CS_UID (using meshbean file)and connect it to the PC. In the WSN Monitor software i can see the device. right.
 
 View user's profile Send private message  
Reply with quote Back to top
gopikrishnan
PostPosted: Feb 13, 2012 - 07:19 AM
Rookie


Joined: Jan 17, 2012
Posts: 46


Please reply to this forum also as it is very urgent: http://www.avrfreaks.net/index.php?name ... p;t=117205
 
 View user's profile Send private message  
Reply with quote Back to top
alexru
PostPosted: Feb 13, 2012 - 07:45 AM
Raving lunatic


Joined: Apr 15, 2009
Posts: 4861
Location: San Jose, CA

What exactly is not working? I will not even try to provide help unless you describe step by step what are you doing, what files changing, what buttons pressing. Provide as much information as possible. Do you have LEDs on your board? Are you sure device joined a network? Have you tried debugging?

I know, describing everything is details takes time, but so does guessing on my side. And I don't feel like wasting a lot of time.

I reply to "urgent" request the same way I reply normal requests - when I get to them.

_________________
The opinions and views expressed by me on this forum are my own and do not represent my employer or anyone else that I’m affiliated with.
 
 View user's profile Send private message Send e-mail Visit poster's website 
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits