Forum: Mikrocontroller und Digitale Elektronik Kurz und bündig: Konfiguration XBee Module. Was brauche ich genau?


von Christian A. (see0jay)


Lesenswert?

Könnte mir jemand kurz und bündig bitte erklären welche XBee Settings 
notwendig sind für folgende Konfiguration:

Habe einen Coordinator und mehrere End-Devices.
Was muss jetzt genau eingestellt werden für dieses Setup?

Was genau ist die PAN-ID und die Operating PAN ID? (Hab hier ein Modul, 
da ist die PAN-ID auf 0 gestellt)

Was ist Network Address und Parent Address?

Ist die Destination Address bei den End-Devices auf den Coordinator zu 
setzen? Wie kann der Coordinator mit den unterschiedlichen End-Devices 
Kontakt aufnehmen?

Möchte in beide Richtungen kommunizieren, was kann man mit dem 
NodeIdentifier anstellen?

Bitte um eine kurze Erklärung, hab schon ein paar Tutorials angesehen, 
bin nicht ganz schlau geworden!

Bitte, Danke!
see0jay

von Christian A. (see0jay)


Lesenswert?

Kennst sich da keiner aus?

von Markus U. (markjus) Benutzerseite


Lesenswert?

Das ist alles im XBee-Manual genau erklärt.

Aber im Grunde muss man den Coordinator nur auf Broadcast einstellen, 
und die End Devices auf die Adresse des Coordinators. Alle müssen die 
gleiche PAN ID und natürlich die gleiche Baudrate haben.
Wenn es ein Point-to-Multipoint Netzwerk ist, dann reicht diese 
Konfiguration aus.

von Christian A. (see0jay)


Lesenswert?

Danke mal für die Infos...

Also die End-Devices können dann Point-to-Point mit dem Coordinator 
kommunizieren.

Wie kann dann der Coordinator die einzelnen End-Devices ansprechen?
Läuft das auch über eine Adresse? Hab gesehen es gibt auch noch einen 
Node-Identifier (String). Was kann man mit dem anfangen?

von Markus U. (markjus) Benutzerseite


Lesenswert?

Steht doch alles ausführlich im XBee-Manual (Ch. 10. "XBee Command 
Reference Tables"):

NI

Node Identifier. Set/read a string identifier. The register only accepts 
printable ASCII data. In AT Command Mode, a string cannot start with a 
space. A carriage return ends the command. A command will automatically 
end when maximum bytes for the string have been entered. This string is 
returned as part of the ND (Node Discover) command.
This identifier is also used with the DN (Destination Node) command. In 
AT command mode, an ASCII comma (0x2C) cannot be used in the NI string

CRE

20-Byte printable 
ASCII string

ASCII space
character (0x20)


DN

Destination Node. Resolves an NI (Node Identifier) string to a physical 
address (case-sensitive).
The following events occur after the destination node is discovered:

<AT Firmware>
1. DL & DH are set to the extended (64-bit) address of the module with 
the matching NI (Node Identifier) string.
2. OK (or ERROR)\r is returned. 
3. Command Mode is exited to allow immediate communication

<API Firmware>
1. The 16-bit network and 64-bit extended addresses are returned in an 
API 
Command Response frame.
If there is no response from a module within (NT * 100) milliseconds or 
a parameter is not specified (left blank), the command is terminated and 
an “ERROR” message is returned. In the case of an ERROR, Command Mode is 
not exited. The radius of the DN command is set by the BH command.

CRE

up to 20-Byte printable
ASCII string


Das Adressieren der einzelnen End-Devices macht man sinnvollerweise im 
API-Modus. XBee-Manual, Ch.9 "API Operation".
Dabei baut man sich Datenpakete zusammen, die die entsprechenden 
Kommandos/ Payload enthalten.

Wenn Du wirklich ernsthaft mit den XBees arbeiten willst, solltest Du 
erstmal das Manual ausführlich studieren. Da kommt man leider nicht drum 
herum...

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.