PretDB / baseStation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hardware

Architecture

-- or | : RS-485 line. == or || : Power line. s: slave with ID. p : power module with ID. +: Led transmitter and controller. **: 220V powerline

The Ground Is NOT Illustrated below.

becon
master============================================
  |    ||      ||      ||      ||      ||      ||
  |    ||      ||      ||      ||      ||      ||
  |----s1-+    s2-+    s3-+    s4-+    s5-+    s6-+
        |       |       |       |       |       |
        |       |       |       |       |       |
220V***p1******p2******p3******p4******p5******p6

Setting ID

Before installation, you MUST set diffrent IDs for each device ( including the master and the slaves ).

You can set ID by setting the DIP switch on the adapter board which is green and also called hole board.

The ID 0 is for the master which calculate the location of each tag. After that, it sends data to each slave device through RS-485.

So, the ID 1 to 6 is for the slave devices.

ATTENTION: master DOES NOT SEND ANY DATA TO LED.

Data Stream

Data Structure on RS-485

^B<Beacon number>T<tag number>X<X value>Y<Y value>$%

Example:

^B1T0X3.679Y2.233$% ^B4T1X1.67333Y0.2333$%

Data Structure on light

Same as upon.

About


Languages

Language:C++ 89.1%Language:C 10.9%