SerialNet freeze

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

Hi freaks,

I have application:

HW: Board with AT-Mega168 + ZigBit AT-ZB-24-A2. Connection UART. 1 x Coordinator + 2 x Router. SerialNet

SW: Program after start wait approx 3 sec, after it start communication.

Everything working good, but sometime after start some module freeze, and I have to connect ZigBit module to PC, and over BootLoader "refresh" SerialNet.

How long, has to wait CPU with communication after start?
Is recommended procedure after start? (Standard initialization for ZigBit modules I have in programs)

Thanks.

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

There is about 1-2 seconds delay while bootloader waits for a start command (of course this delay is present if you have bootloader, otherwise it should work right away).

ZigBit memory should not erase by itself, something is wrong with your hardware. Check power first and then when this happens instead of reprogramming the chip, read its contents first to see if program is still there.

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

It is important,

When it is happened, this module does not communicate. No answer on AT commands. No RF activity - no JOIN with others modules. Serial line is dead. I have to only reprogram SerialNet.

HW problem - where? In power supply? There is only battery and switching power suuply (Based on MAX1760), with all required capacitors. Output voltage is 3.2V. CPU AVR Mega has not problem.

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

Well, have you tried to read the contents of the ZigBit flash memory? What fuses do you have set?

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

In this time I have not any wrong module. I have to wait for problem happened. Modul is connected only over UART. When it possible I will send you Fuses and HEX files.

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

Hi Alexru,
I have tried changed connection. After start ADC measure battery voltage and if it OK - AVR port over transistor connect power supply to ZigBit. When battery voltage decrease under critical level AVR shut down ZigBit module. ZigBit module is again connect after battery is changed or recharged. I know ZigBit module has set up BODLEVEL, but after this change I have not problem.