CC2530-ZigBee - DomLinux III 登入 軟體操作.....3-3 第四章 ZB2530-02...

45
WinCE 6.0 / Android 2.1 DMA-6410XP / DMA-6410L / DMA-6410 HMI430/500/700-6410S CC2530-ZigBee ARM www.dmatek.com.tw ZB2530-02

Transcript of CC2530-ZigBee - DomLinux III 登入 軟體操作.....3-3 第四章 ZB2530-02...

  • WinCE 6.0 / Android 2.1

    DMA-6410XP / DMA-6410L / DMA-6410HMI430/500/700-6410S

    CC2530-ZigBee

    ARM

    www.dmatek.com.tw

    ZB2530-02

  • 1

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0-1

    0-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0-1 0-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0-2

    ZigBee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1

    ZB2530-02 RS232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1

    2-1 ZB2530-02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 2-2 ZB2530-02 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 2-3 ZigBee Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10 2-4 ZigBee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 2-5 ZigBee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15 2-6 ZigBee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20 2-7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22 2-8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-26

    ZB2530-02 RS232 WinCE 6.0 . . . . . . 3-1

    3-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 3-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3

    ZB2530-02 RS232 Android . . . . . . . . . . 4-1

    4-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 4-3 Android ZigBee APK .. . . . . . . . . . . . . . . . . . . . . . . . . . 4-2

  • 2

    4-4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 4-5 Coordinator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8 4-6 Router . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 4-7 Coordinator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1

    ZigBee Debugger . . . . . . . . . . . . . . . . . . . . . . . . 1-1

    1-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5

  • 0-1

    O

    0-1

    CC2530-ZigBee

    ZigBee Debugger CC2530-ZigBee

    ZigBee CC2530-ZigBee

    ZigBee-02 WinCE Android

    ZigBee Debugger

  • 0-2

    CC2530-ZigBee

    0-2

  • 1-1

    ZigBee

    ZigBee

    ZigBee ZigBeeIEEE 802.15.4

    ZigBee(bee)

    ""(zig)""

    ZigBee

    ZigBee ZigBee"".

    (sensor and control) IEEE 802.15

    TG4 IEEE 802.15.4

  • 1-2

    CC2530-ZigBee

    2002ZigBee Alliance

    2004ZigBee V1.0 ZigBee

    2006 ZigBee 2006

    2007 ZigBee PRO

    ZigBee IEEE 802.15.4.

    MAC IEEE 802.15.4

    ZigBee 2003

    ZigBee Home RF

    Lite

    Bluetooth

    Bluetooth

    IEEE802.15.4 ZigBee

    IEEE802.15.4

  • 1-3

    ZigBee

    ZigBee

    ZigBee

    ZigBee CDMA GSM

    ZigBee 75m

    ZigBee 65000

    ZigBee

    75m

    CDMA GSM ZigBee

    ZigBee 4000 ZigBee

  • 1-4

    CC2530-ZigBee

    ZigBee (FFD)

    (RFD)

    ZigBee ZigBee

    ZigBee

    ZigBee

    ZigBee

    ""

  • 1-5

    ZigBee

    ZigBee

    2 5 1 6

    24 ZigBee

    WiFi

    TI Micropelt ZigBee

    Micropelt TI ZigBee

    (1/10)

    8051 8 32KB

    4KB ZigBee

    2

    ZigBee20250 kbps250 kbps

    (2.4GHz)40kbps (915 MHz) 20kbps(868 MHz)

    10100mRF

    13 km

    ZigBee15ms

    30 ms310s

    WiFi3 s

    ZigBee

    254

    65000

    ZigBee,

    (ACL)(AES 128)

    (ISM)2.4 GHz (

    )915MHz() 868 MHz ()

  • 1-6

    CC2530-ZigBee

    ZigBee 1) 868MHZ 20KB/S

    2) 915MHZ 40KB/S

    3) 2.4GHZ 250KB/S

    0.6MHZ2MHz 5MHz 1 10 16

    (DSSS)

    868MHZ 915MHZ BPSK

    2.4GHZ OQPSK

    0dBm BLUETOOTH 10M

    IEEE 802.15.4 ZigBee 30-50

    100

    ZigBee

    ZigBee 1 2.4GHZ 250Kb/S

    100Kb/S

    2 ZigBee

    MAC(APS )

    MACCSMA

    ZigBee

    3 ZigBee MAC

  • 1-7

    ZigBee

    4 ZigBee

    ZigBee

    5

    ZigBee 65000

    Bluetooth 8

    ZigBee

    1

    Bluetooth 3

    ZigBee

    ZigBee ZigBee

    ZigBee

    50ZigBee150

    2007ZigBee

  • 1-8

    CC2530-ZigBee

    TI RF Road Map

    ZigBee ZigBee

    IEEE802.15.4

    ZigBee

    ZigBee

    ZigBee

    ZigBee

    ZigBee

    ZigBee ZigBee IEEE802.15.4 MAC

    2003 5 ZigBee

    V1.0

    ZigBee 802.15.4 IEEE

  • 1-9

    ZigBee

    MAC ZigBee API

    4K

    Hub 32K 255

    ZigBee

    ZigBee ZigBee Coordinator

    RouterEnd Device

    CoordinatorWPAN Formation

    Short Address

    RouterRouting

    PathShort Address

    Child

    End Device

  • 1-10

    CC2530-ZigBee

  • 2-1

    ZB2530-02 RS232

    ZB2530-02

    RS232

    2-1 ZB2530-02

    ZB2530-02 TI CC2530F256 ZigBee2007/PRO

    ZigBee ZigBee

    ZigBee Full ZigBee2007 ZigBee2007

    256K FLASH

    ZB2530-02

    DMATEK ZigBee

    ZigBee ZigBee ZigBee

    ZigBee

    ZB2530-02" RS232 "

    RS232

    Coordinator

    ZigBee

  • 2-2

    CC2530-ZigBee

    1 0xFD

    + 0x0A+ 0x73 0x79+ 0x01

    0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x10 0x0A

    Bytes

    2 RS485 Coordinator

    Coordinator

    ZigBee

    IEEE ZB2530-02 TI CC2530F256

    IEEE IEEE

    2-2 ZB2530-02

    1

    DC 5-12V

    -40 --85

    38400bps 9600bps19200bps38400bps

    115200bps

    2.4GHz

    ZigBee2007 /PRO

    400

    34mA

    25mA

    -96DBm

    CC2530F256256KFLASHTI ZigBee SOC

  • 2-3

    ZB2530-02 RS232

    2

    ZB2530-02 75.5 * 49.5 * 21.3mm

  • 2-4

    CC2530-ZigBee

    3

    ZB2530-02

    ZB2530-02

    J9

    UART (COM1)

    J10

    Debugger(J1)

    Test

    (SW2)

    Reset

    (SW3)

    TX/RX

    (D4)

    Active

    (D3)

    (J6) IO (J8) CC2530

    (U3)

    Mini USB

    (CON1)

    J2/J3 Extend

    (SW1)

  • 2-5

    ZB2530-02 RS232

    1 ) ZB2530-02

    ZB2530-02

    1. J105V

    U3 3.3VUSBCC2530

    2. Mini USB CON1 Mini USBCC2530

    USB3.3V/100mARS232

    3. J97 AA3V

    USBCC2530

    2)

    ZB2530-02 4 LED

    SW1--

    SW2---TEST

    SW3---RESET

    LEDD3---ACTIVE

    D4---TX/RX

    D5D6---

    J6---

    3) I/O

    I/O J8CC2530 I/OCC2530I/O

    I/O

  • 2-6

    CC2530-ZigBee

    1 P1.7

    2 P2.0

    3 P1.5

    4. P1.6

    5 P1.3

    6 P1.4

    7 P0.6

    8 P1.2

    9 P0.7

    10 P0.0

    I/O J8

    4) Debugger

    ZB2530-02 J1

    1 ND

    2 VCC

    3 DC

    4. DD

    5 NC

    6 NC

    7 RESET_N

    8 NC

    9 VCCNC

    10 NC

  • 2-7

    ZB2530-02 RS232

    5) UART

    ZB2530-02 UART DP9COM1

    3.3VRS232 TTL RS232 J2J3

    PC

    DB9

    2 = TX

    3 = RX

    5 = GND

    TX RXRX TXGND GND

    COM1 DB9

    = 8

    = 1

    = None

    = None

    ZB2530-02 UART Mini USBCON1

    3.3VCP2530USB J2J3

    PC USB

  • 2-8

    CC2530-ZigBee

    4

  • 2-9

    ZB2530-02 RS232

    5

    1) 3PinRS232 DMA-6410L

    2) Mini 5Pin USBRS232 HMI

    3) RS232 DMA-6410XP

    4) USB

  • 2-10

    CC2530-ZigBee

    6

    1) 5V 2A

    2-3 ZigBee Debugger

    SmartRF Flash

    Programmer

    RESET

    ZigBee DebuggerZB2530-02

    9Flash rpgramming

    ZB2530-0211

    1 1

  • 2-11

    ZB2530-02 RS232

    Debugger1

    1

  • 2-12

    CC2530-ZigBee

    Flash rpgramming

    2-4 ZigBee

    1 ZigBee

    ZigBee CoordinatorRouter

    End Device

    Coordinator ZigBee

    Coordinator

    ZigBee Coordinator PAN ID ID

    Coordinator PAN ID

    Coordinator PAN ID PAN ID

    Router

  • 2-13

    ZB2530-02 RS232

    Router

    ZigBee Router Router

    Coordinator1Router

    MESH

    End Device ZigBee

    End Device

    1) ZigBee End DeviceEnd Device

    End Device

    2) ZigBee 300 Router

    End

    Device End Device End Device

  • 2-14

    CC2530-ZigBee

    ZigBee 1 Coordinator +

    n Router End Device

    2 ZigBee

    ZigBee

    1

    2 PAN ID 0x199B

    ZigBee PAN ID

  • 2-15

    ZB2530-02 RS232

    3

    2-5 ZigBee

    ZigBee

    1

    0xFE0xFD0xFC

    Coordinator

    Coordinator

    2

    ZigBee

    0xFD + + +

  • 2-16

    CC2530-ZigBee

    1

    ZB2530

    1) 0xFE0xFD 0xFC

    2) Coordinator

    Coordinator

    3)

    ZB2530

  • 2-17

    ZB2530-02 RS232

    1

    2

    32

    < 32 / 1S

  • 2-18

    CC2530-ZigBee

    2

    0xFD_+ _+ _+

    32Bytes

    256

    0x14310x7973

    0xFD 0x0A 0x31 0x14 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x10

    0xFD

    0x0A

    0x31 0x14

    0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x10

    0x7973 COM60x1431 COM5

    0x7973 0xFD 0x0A 0x31 0x14 0x01 0x02 0x03 0x04 0x05 0x06

    0x07 0x08 0x09 0x10

    0x1431 0xFD 0x0A 0x31 0x14 0x01 0x02 0x03 0x04 0x05 0x06

    0x07 0x08 0x09 0x10

    1 End Device =

    2 Coordinator End Device=

    3 End Device Coordinator=TI Sensor

    Monitor +

  • 2-19

    ZB2530-02 RS232

    End Device

    0xFD 0x0A 0x00 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09

    0x15

    Coordinator PC

    0xFE 0x0A 0x46 0x87 0x6F 0x79 0x02 0x00 0x04 0x00 0x01 0x02 0x00 0x00

    0xD8 0xFD 0x0A 0x00 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08

    0x09 0x15

    0xFE 15Bytes TI Sensor Monitor

    0xFD = End

    Device

    0xFE 0x0A 0x46 0x87 0x6F 0x79 0x02 0x00 0x04 0x00 0x01 0x02 0x00 0x00

    0xD8

  • 2-20

    CC2530-ZigBee

    0xFD 0x0A 0x00 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x15

    End Device

    0xFD

    0x0A

    0x00 0x000x0000 Coordinator

    0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x15

    2-6 ZigBee

    16_

    (1) PAN ID 0x20 10

    FC 02 91 01 XX XXXX XX PAN ID20 10

    XX XX_20 10

    (2) PAN ID FLASH

    38400

    FC 00 91 02

    19 9B19 9B PAN ID

    (3) PAN ID

    FC 00 91 03

    19 9BPAN ID

    (4) Short Address

    FC 00 91 04

    6F 796F 79

  • 2-21

    ZB2530-02 RS232

    (5)

    FC 00 91 05

    B9 0B9600

    BA 0B19200

    BB 0B38400

    BC 0B57600

    BD 0B115200

    (6)

    FC 01 91 06 019600

    FC 01 91 06 02_19200

    FC 01 91 06 03_38400

    FC 01 91 06 04_57600

    FC 01 91 06 05_115200

    00 00 09 06 00 00

    00 01 09 02 00 00

    00 03 08 04 00 00

    00 05 07 06 00 00

    01 01 05 02 00 00

    (7)

    FC 00 91 07

    01 02 03 04 05

  • 2-22

    CC2530-ZigBee

    2-7

    Coordinator PCPC

    Texas Instruments -> ZigBee Sensor Monitor -> ZigBee Sensor Monitor

    Coordinator

    RouterRouterActive

    TestZigBee Sensor Monitor

  • 2-23

    ZB2530-02 RS232

    Coordinator PCPC

    DMAComDebuger.exe

    Display as HEX

  • 2-24

    CC2530-ZigBee

    RouterRouterActive

    TestPCE0 E0

    0E C0 E0 00 FC FE 00 1C 00 80 00 E0 00 80 00 00 00 00 FC FC 00 00 00 E0 1C

    E0 00 80 1C 7E C0 FC 7E F8

  • 2-25

    ZB2530-02 RS232

    RouterRouter

    PCCE

    CESM_ARMV4_V2.1.exe

    RouterTest

  • 2-26

    CC2530-ZigBee

    2-8

    1 PAN ID

    PAN ID ZigBee ID ZigBee

    ID

    ID ZigBee

    2

    Short Address Coordinator

    Coordinator 0x00 0x00

    0xFE 0xFF

    0x6F 0x79

    3 CoordinatorRouterEnd Device

    ZigBee Coordinator

  • 2-27

    ZB2530-02 RS232

    RouterEnd Device

    CoordinatorWPAN Formation

    Short Address

    RouterRouting

    PathShort Address

    Child

    End Device

    4 ZB2530-02

    Coordinator

    1) LED1 LED2 ZigBee

    2) LED2

    Router End Device

    1)

    2)

    3) LED2

    5 ZB2530-02 RS232

    2 = TX

    3 = RX

    5 = GND

    TX RXRX TXGND GND

    COM1 DB9

    = 8

    = 1

    = None

  • 2-28

    CC2530-ZigBee

    = None

    6 ZigBee

    End

    DeviceRouterRouterCoordinator

    End Device

    7 PAN ID 1

    ZigBee Coordinator

    Router Coordinator

    Router Coordinator PAN ID

    Coordinator Coordinator PAN ID 1 Coordinator

    PAN ID PAN ID Coordinator PAN ID

    1

    1) Coordinator PAN ID Router End Device

    PAN ID Router End Device Coordinator

    2) Coordinator

    Coordinator PAN ID

    3) PAN ID PAN ID 1 PAN

    ID PAN ID FF FF

    8 Coordinator

    Coordinator Coordinator

    PAN ID Coordinator

    PAN ID Coordinator PAN ID FF FF

  • 2-29

    ZB2530-02 RS232

    Coordinator PAN ID PAN ID

    PAN ID

    Coordinator PAN ID Coordinator

    9 PAN ID = 0xFF 0xFF

    PAN ID FF FF

    ZigBee LQ

  • 2-30

    CC2530-ZigBee