Zigbit A2 will not join the Ravens on BitCloud network {WSN}

Go To Last Post
16 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm working with AVR Studio 5, Dragon prog'r, RAVEN kit and Zigbit A2 module. I loaded BitCloud 1.11 onto the Ravens & USB Stick. The WSN Demo works OK for this configuration. When I loaded WSN Demo on the Zigbit A2 module it does not join the network with the RAVENS.

I connected JTAG & Vcc to the Zibit A2 module. I uploaded the WSNDemo embedded hex file from BitCloud for Zigbit 1.120 named;
"F:\BitCloud_ZIGBIT_1_12_0\Evaluation Tools\WSNDemo (Embedded)\WSNDemo_Router_Rf230.hex"

I used AVR Studio 5 to load the embedded code with my Dragon prog'r. The dialog box verified the Target voltage was correct as was the device signature for the 1281. The Program button started the load and I checked it by running the Verify. All these steps worked OK.

I started the WSN Demo software on my Laptop using the RZUSBSTICK. The COM13 port showed up and the COOR node was displayed OK. I disconnected the JTAG & cycled power OFF/ON the Zigbit module.

No node was found on the WSN Display window. I also tried this with the embedded EndDevice hex file. Neither hex file made the Zigbit module connect to the COOR.

I'm guessing the Zigbit version of WSN Demo for BitCloud needs a software patch to join the network but I didn't find any reference on how to do this patch.

Your suggestions are appreciated. Thanks

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

Last Edited: Fri. Oct 16, 2015 - 02:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Check that your CS_UID are not the same on all nodes. The best way to do this is to compile image manually and set CS_UID manually.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your reply.
Please let me know where I can find the CS_UID in the source code.
best regards,
Spincraft

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

configuration.h. Would not it be much faster just to search for it?

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your helpful hint.
I'm new to this code.
best regards

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
#define CS_UID 0x0LL

// Determines whether the static or automatic addressing mode will be used for the
// short address.
// 
//  If set to true, the CS_NWK_ADDR parameter will be used as the device's short
// address. Otherwise, the short address is assigned automatically by the stack. An
// actual assignment method is specified in CS_ADDRESS_ASSIGNMENT_METHOD.

I tried to recompile and used the above CS_UID value in the config.h file.
Please let me know if there is another value I should test.
Thanks in advance for your help.
Spincraft

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Assign unique non-zero number to each device.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I forgot to mention that I'm not using a Meshbean bd. There are more lines to change in the configuration.h file when using the A2 module, as a Router, alone;

//#define CS_UID 0x0LL
#define CS_UID 01

#define CS_NWK_UNIQUE_ADDR true
//#define CS_NWK_UNIQUE_ADDR false

//#define APP_DEVICE_TYPE DEV_TYPE_COORDINATOR
//Device is Router
#define APP_DEVICE_TYPE DEV_TYPE_ROUTER
//Device is End Device
//#define APP_DEVICE_TYPE DEV_TYPE_ENDDEVICE

#define APP_DISABLE_BSP 1
//#define APP_DISABLE_BSP 0

When I compile this code, it gives 1 error:
invalid suffix "x0LL" on integer constant

The network I'm testing is just the USB Stick and one A2 module for now. I want to add more A2 modules, later. Can this ID be set another way other than manually?

Thanks in advance for your help.

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

spincraft wrote:
When I compile this code, it gives 1 error:
invalid suffix "x0LL" on integer constant

In what line? There is nothing wrong with the snippet you've posted.

spincraft wrote:
Can this ID be set another way other than manually?
Only by using separate UID chip.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for your rapid reply.
This is the error code it gives when it compiles;

make: *** No rule to make target `WSNDemoApp.o'. Stop.
Build failed with 1 errors and 0 warnings...

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do you build it and what you have changed in Makefile?

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

here are the messages from the build;

Loaded plugin STK500
gcc plug-in: No AVR Toolchain installation found. The AVR GCC plug-in can still be used if you set up your own build tools.
gcc plug-in: Failed to open AVR Toolchain registry key..
Loaded plugin AVR GCC
Loaded partfile: C:\Program Files\Atmel\AVR4 Tools\PartDescriptionFiles\ATmega1281
Flash memory 131072
EEPROM memory 4096
I/O memory start 0x20
I/O start 0x00
I/O stop 0x3F
I/O extended start 0x60
I/O extended stop 0x1FF
SRAM size 8192
SRAM start 0x200
XRAM size 65536
Temporary page buffer 256
SRAM start 0x2200
No of registers 32
Start Address registers 0x00
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() 
gcc plug-in: CProjectTree::OnSize() 
Flash memory 131072
EEPROM memory 4096
I/O memory start 0x20
I/O start 0x00
I/O stop 0x3F
I/O extended start 0x60
I/O extended stop 0x1FF
SRAM size 8192
SRAM start 0x200
XRAM size 65536
Temporary page buffer 256
SRAM start 0x2200
No of registers 32
Start Address registers 0x00
gcc plug-in: Making arbitrary targets when using external makefile may fail

I'm using Studio 4 and it does not find avr toolchain on its own. I use project>>configuration options>>custom options to specify the toolchain path.
I hope this info is helpful.
Thanks

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please tell what are you doing step by step starting from extracting BitCloud SDK. From this information I can't tell what is going wrong.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, I will extract BitCloud SDK, again and retrace my steps.
Also, I assume you mean the Dallas DS2411R UID chip in your previous comment.

Your help is very much appreciated.
Thanks

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

By default HAL will try to read some specific chip, I don't remember which one. But you may just read any chip you have from the application and set CS_UID to its value.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I powered up my XP computer and downloaded a fresh copy of BitCloud for zigbit. After making the changes to the configuration.h files, it 'built' without errors.

The best part is that the zigbit is programmed as a router and connects up to the WSNDemo COOR. It works great.

THANKS for your help, Alex!

Asking a better question, is the beginning of learning.
**********************
New Hardware Hackers SIG in San Diego, CA Meets 2nd. Tuesday, more info www.Spincraft.com
***********************