Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems loading a zigbee example in pinguino micro
17-05-2013, 03:48 PM,
#1
Problems loading a zigbee example in pinguino micro
Hi guys,

i have a pinguino micro, and zigbee modules...

first of all i need to understand some things and the best is test something simple...

So in the pinguino micro page of olimex a downloaded the example for zigbee.

Copy & paste the code and compiled, after that i have send it to pinguino board.

The first code apears:
----------------------------------------
Press a key to init the ZIGBEE module
-----------------------------------------
Connection to module is open. Now you need to:

1) Push the RST button on the MOD-ZIGBEE coordinator
---to start a fresh network. It should repost 'joining permitted'

2) Power up/reset your ZIGBEE sensors; they should find the
---network automatically; Pinguino will report adding a new device
---at the first available position. Note: Default free positions are 5
---but you can change that in the source code of the example

3) After connecting all your devices to the network, press the
---button next to the C17 resistor on your MOD-ZIGBEE coordinator
-----------------------------------------

but if i follow the instrucções I receve NOTHING in the virtual console.

the idea is catching the info that zigbee module is sending to uart2 of pinguino micro, and it send it to the virtual serial port to computer...to be visualized...

Anny idea?It is implemented with a interrupt, i am a newbie in pic processors, i am quite lost on it.

Any help?

regards
tux
Reply
17-05-2013, 07:51 PM,
#2
RE: Problems loading a zigbee example in pinguino micro
If you need to test something simple try examples in 04.Communication/Zigbee and change Serial to CDC.
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
17-05-2013, 10:49 PM,
#3
RE: Problems loading a zigbee example in pinguino micro
Good idea!

Please post back with what happens. Someone else may want to do it.

John
Reply
19-05-2013, 06:34 PM,
#4
RE: Problems loading a zigbee example in pinguino micro
Hi,

i have a problem...

I think that boot loader, already configures the USB CDC right?
but when it resets micro(to run user code)... the USB stills enabled, or my program have to enable USB Again?


thanks in advance.

regards
tux
Reply
19-05-2013, 09:07 PM, (This post was last modified: 19-05-2013, 09:10 PM by regis.)
#5
RE: Problems loading a zigbee example in pinguino micro
Sorry, I don't really understand what the problem is ... but there is nothing special to do before using CDC functions.

(19-05-2013, 06:34 PM)TuxD3v Wrote: Hi,

i have a problem...

I think that boot loader, already configures the USB CDC right?
but when it resets micro(to run user code)... the USB stills enabled, or my program have to enable USB Again?


thanks in advance.

regards
tux
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
20-05-2013, 01:11 AM, (This post was last modified: 20-05-2013, 01:13 AM by TuxD3v.)
#6
RE: Problems loading a zigbee example in pinguino micro
hi,
i am using c = Serial.getKey(uport);several times...

when i compile the code i get:

compiling...
/home/tuxd3v/pinguino/x.4/source/user.c:275:3: error: too many arguments to function 'serial1getkey'

/home/tuxd3v/pinguino/x.4/source/user.c:278:3: error: too many arguments to function 'serial1getkey'

error while linking /home/tuxd3v/Desktop/Newfile0.o
You can review the file stdout (F8) for more information.

i am using uart2 to speak to zigbee module and uart1 to debug and usb to receive the data...

i don 't know whats wrong... :S

is there any way to chose to send data to uart1 instead of uart2, or other?because Serial.getKey doesen 't tels me to what uart to send...

regards and thanks for the help Wink

tux
Reply
20-05-2013, 04:15 PM, (This post was last modified: 20-05-2013, 04:16 PM by regis.)
#7
RE: Problems loading a zigbee example in pinguino micro
Serial.getKey() is the same as Serial1.getKey().
Those functions take no argument, that's why you got this error.
You can also use Serial1.getKey() or Serial2.getKey(), etc .... to scan UART1 or UART2, etc ...
or SerialP32MX.getKey(UART1) or SerialP32MX.getKey(UART2) ...
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)