Analog Input / Digital I/O

@XBee-Experten,

im Datenblatt der XBee Module ist im Kapitel: „Pin Signals“ von „Analog Input / Digital I/O“ die Rede.
Gibt es diese Pins wirklich und wenn ja wie kann man sie nutzen :confused:

MST

PC: würde mir dann eine XBee-Steckdose mit Rückmeldung des tatsächlich fließenden Strom bauen … :rolleyes:

… oder ein Touchscreen mit Raumtemperaturerfassung. Das würde die Möglichkeiten ja noch einmal weiter steigern :wink:

… dann sammelt mal Ideen: PIR (Bewegung), Temperatur, Feuchte, Helligkeit, Luftgüte, LED, Piezo, Sprachspeicher-Modul …
… vielleicht sollte man dann doch noch ein ATMEL spendieren … :rolleyes:

MST

… das du auch gleich immer übertreiben musst. Die Temperatur u. ggf. Feucht würde mir am Touchpanel schon reichen. Die programmierei des Atmels wollte ich mir damit ja sparen. Das habe ich jetzt ja schon beim Display3000 Modul.
Doc

… OK, dann verzichten wir auch auf den Fingerprintsensor …
Hier habe ich etwas gefunden: http://www.maxstream.net/support/knowledgebase/article.php?kb=180

MST

@XBee-Experten,

I/O und A/D Werte lesen, das ist soweit OK.

Aber wie setzt man I/O auf einem Slave-XBee und funktioniert hier auch der Sleep-Modus? (alles ohne zusätzlichen µPC)

Hier einige Links:
http://www.maxstream.net/support/knowledgebase/article.php?kb=104
http://www.maxstream.net/support/knowledgebase/article.php?kb=188
http://www.maxstream.net/support/knowledgebase/article.php?kb=113
http://www.maxstream.net/support/knowledgebase/article.php?kb=115

MST

PS: es muss gehen - hier ein Beispiel aus dem Model-Flugzeugbau:
http://itp.nyu.edu/~raf275/blog/images/xbee_direct_output.jpg
http://itp.nyu.edu/~raf275/blog/images/xbee_direct_input.jpg

Eigentlich habe ich ja keine Ahnung. Ich versuche es trotzdem; hier steckt ein PDF drin:

http://www.maxstream.net/products/xbee/XBee_Code_Development.zip

MaxStream PHY Low Power Operation
The “XBee-Phy.h” file is supplied in the 802.15.4, SMAC and ZigBee “Source” folders (supplied with this document). This file contains a prototype for the XBee_Phy_IO() function. This function will set the PHY-level I/O lines (and A/D Converter, XBee-PRO only) for either low-power or active operating modes based on the argument (PHY_SLEEP or PHY_WAKE respectively). This file can be added to the 802.15.4, SMAC or ZigBee projects if low power operation is required.
Application Low Power Notes
Several steps are listed below to help reduce power consumption when developing an application. These steps are supplemental to the process described in the Freescale documentation.
To Enter Sleep:
Configure the module ID pin (PTA1) as a low driving output: PTAPE_PTAPE1 = 0; PTAD_PTAD1 = 0; PTADD_PTADD1 = 1;
Call XBee_Phy_IO() to configure the PHY IO lines for sleep: XBee_Phy_IO(PHY_SLEEP);
(XBee_Phy_IO() is defined in “XBee-Phy.h”. See “MaxStream PHY Low Power Operation” section.)
Set the MAC Attribute gMPibRxOnWhenIdle_c to false to disable the receiver when idle.
Call AttEnable. (This macro is defined in Target_XBee.h.)
If using the Freescale ASP layer or Power Library, send the sleep request primitive (Hibernate Request, Doze Request, etc) to sleep the MC13193.
If applicable, issue the Stop command to sleep the MC9S08GT60: asm STOP; (see MC9S08GT60 datasheet for information on Stop modes.)
To Wake from Sleep:
AttDisable / AttEnable may need to be called to wake the MC13193 from sleep if it is in Hibernate or Acoma mode.
Set the MAC Attribute gMPibRxOnWhenIdle_c to true to enable the receiver when idle. This may require setting the channel again.
Setup the module ID pin (PTA1) as an input with the pull-up enabled: PTAPE_PTAPE1 = 1; PTADD_PTADD1 = 0;
Call XBee_Phy_IO() to configure the PHY IO lines for wake: XBee_Phy_IO(PHY_WAKE);

Also irgenwie über die MAC-Adresse…
gruss remo