Sei sulla pagina 1di 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

BeanGateway RS232 Data Output V1.2R5

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 1 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

DOCUMENT
Document number External Reference Author Internal Reference Document Name

V_SES_20 BGT_RS232_DO BGT_RS232_DO BeanGateway RS232 Data Output

Version Publication date

V1.2R5 05/11/2010

Philippe FROMON
Project Code N.A.

VALIDATION
Function Reader Author Recipients Jonathan DINIS, Technical support engineer Philippe FROMON, embedded software engineer X For For Validation information X

MAILING LIST
Function Staffer 1 Staffer 2 Recipients Jonathan DINIS Damon PARSY For action X X For Info

Updates
Version V1.0 V1.1 V1.2 Date 07 /25/2009 03/17/2010 05/11/2010 Author Ph. FROMON Ph. FROMON Ph. FROMON Evolution & Status First version of the document Math mode measurement added Streaming data frame added

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 2 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Contents
1. 2. 3. 4. 5. 6. 7. TECHNICAL SUPPORT .................................................................................................................................... 5 VISUAL SYMBOLS DEFINITION ...................................................................................................................... 6 ACRONYMS AND ABBREVIATIONS ............................................................................................................... 7 RELATED DOCUMENTS .................................................................................................................................. 8 DUAL LINK RS232/ETHERNET NETWORK ARCHITECTURE ....................................................................... 9 RS232 PINOUT ............................................................................................................................................... 12 MEASUREMENT DATA GENERAL FRAME FORMAT .................................................................................. 14 1. Long Frame Data Header Field............................................................................................................ 14 2. Short Frame Data Header Field ........................................................................................................... 15 3. Payload Data (Low Duty Cycle Measurement) ....................................................................................... 16 4. Payload Data (Packet math mEASUREMENT) ...................................................................................... 17 5. Payload data Streaming Mode ...................................................................................................... 19 BEANGATEWAY DATA COMMUNICATION IN ASCII MODE (ISO/IEC 8859-1:1998) ................................. 21 BEANDEVICE SPECIFICATIONS .................................................................................................................. 27 1. BeanDevice version ................................................................................................................................ 27 2. Data Conversion on the DTE EQUIPMENT ............................................................................................ 28 a. BeanDevice AN-V ................................................................................................................................. 28 b. BeanDevice AN-420 ............................................................................................................................. 28 c. BeanDevice T-Si ................................................................................................................................... 29 d. BeanDevice T-H ................................................................................................................................... 29 e. BeanDevice TOR .................................................................................................................................... 29 f. BeanDevice AX-3D ............................................................................................................................... 30 g. BeanDevice Hi-INC .............................................................................................................................. 30 h. BeanDevice SUN-T .............................................................................................................................. 31

1. 8.

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 3 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Disclaimer
The information contained in this document is the proprietary information of Beanair. The contents are confidential and any disclosure to persons other than the officers, employees, agents or subcontractors of the owner or licensee of this document, without the prior written consent of Beanair Ltd, is strictly prohibited. Beanair makes every effort to ensure the quality of the information it makes available. Notwithstanding the foregoing, Beanair does not make any warranty as to the information contained herein, and does not accept any liability for any injury, loss or damage of any kind incurred by use of or reliance upon the information. Beanair disclaims any and all responsibility for the application of the devices characterized in this document, and notes that the application of the device must comply with the safety standards of the applicable country, and where applicable, with the relevant wiring rules. Beanair reserves the right to make modifications, additions and deletions to this document due to typographical errors, inaccurate information, or improvements to programs and/or equipment at any time and without notice. Such changes will, nevertheless be incorporated into new editions of this document. Copyright: Transmittal, reproduction, dissemination and/or editing of this document as well as utilization of its contents and communication thereof to others without express authorization are prohibited. Offenders will be held liable for payment of damages. All rights are reserved. Copyright Beanair Ltd. 2010.

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 4 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

1.

TECHNICAL SUPPORT

For general contact, technical support, to report documentation errors and to order manuals, contact Beanair Technical Support Center (BTSC) at: tech-support@beanair.com For detailed information about where you can buy the Beanair equipment/software or for recommendations on accessories and components visit: www.beanair.com

To register for product news and announcements or for product questions contact Beanairs Technical Support Center (BTSC). Our aim is to make this user manual as helpful as possible. Keep us informed of your comments and suggestions for improvements. Beanair appreciates feedback from the users of our information.

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 5 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

2.

VISUAL SYMBOLS DEFINITION

Visuel

Dfinition

Caution or Warning Alerts the user to important points about Beanair wireless sensor networks (WSN), if these points are not followed, the equipment /software may fail or malfunction.

Danger This information MUST be followed or catastrophic equipment failure or bodily injury may occur.

Tip or Information Provides advice and suggestions that may be useful when installing Beanair Wireless Sensor Networks.

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 6 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

3. ACRONYMS AND ABBREVIATIONS

AES CSMA/CA GTS LLC LQI MAC PAN PER RF WSN

Advanced Encryption Standard Carrier Sense Multiple Access/Collision Avoidance Guaranteed Time-Slot Logical Link Control Link Quality Indicator Media Access Control Personal Area Network Packet Error Rate Radio Frequency Wireless Sensor Networks

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 7 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

4.

RELATED DOCUMENTS

BeanDevice User Manual BeanGateway User Manual BeanScape User Manual

V1.4 V1.5 V1.6

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 8 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

5. DUAL LINK RS232/ETHERNET NETWORK ARCHITECTURE

Data coming from the wireless network is redirected as follows: For Measurement Data: A RS232 with ASCII or RTU frame format can be used; For Network Diagnostic Data (Battery Charge/Discharge, Battery Voltage value, PER, LQI): All these information are displayed on the BeanScape through the Ethernet Link;

Although displaying Network Diagnostic Data on your BeanScape is optional, it helps you to configure and manage easily your Wireless Sensor Network (WSN).

The BeanScape offers the possibility to configure and manage over-the-air a BeanDevice. The following configurations are possible: Radio TX Power in dBm ; Measurement mode (Low Duty Cycle measurement, Math, Alarm, Streaming ) ; Duty Cycle, Sampling frequency and duration ; Anti-aliasing Filter configuration; Idle/Active Power mode The following RS232 functionalities available on the BeanGateway can be configured through the BeanScape: RTU or ASCII Format; RS232 Data Rate; RS232 for LAN Network configuration (IP, DNS & DHCP configuration) or for Measurement Data output;

cf. the BeanScape User Manual for more information about the WSN configuration

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 9 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Two types of network configuration are possible: Dual Link RS232/Ethernet Network configuration Single Link RS232 Network configuration
Dual link RS232/Ethernet configuration

BeanScape Network Diagnostic Data Network Configuration Data Ethernet TCP/IP

Wireless Network

Measurement Data

RS232 - RTU or ASCII

Network configuration: Single link RS232 configuration

Single Link: RS232


First Step: Configure and Manage your WSN through the BeanScape

BeanScape Ethernet TCP/IP Network Configuration Data frame

Wireless Network

Data Acquisition frame

RS232 - RTU or ASCII

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 10 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Single Link: RS232


Second Step: Start logging on your DTE equipment all the data acquisition

Wireless Network

Data Acquisition frame RS232 - RTU or ASCII

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 11 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

6. RS232 PINOUT

The RS232 standard is defined by the EIA/TIA (Electronic Industries Alliance / Telecommunications Industry Associations). The standard defines an asynchronous serial data transfer mechanism, as well as the physical and electrical characteristics of the interface. RS232 uses serial bit streams transmitted at a predefined baud rate. The information is separated into characters of 5 to 8 bits lengths. Additional start and stop bits are used for synchronization and a parity bit may be included to provide a simple error detection mechanism. The electrical interface includes unbalanced line drivers, i.e. all signals are represented by a voltage with reference to a common signal ground. RS232 defines two states for the data signals: mark state (or logical 1) and space state (or logical 0).

Definitions

DCE

Data Communications Equipment. The terms DCE and DTE refer to the serial devices on each side of an RS232 link. The BeanGateway is a typical example of a DCE device. The BeanGateway is equipped with a female SUB D9. Data Terminal Equipment. The terms DCE and DTE refer to the serial devices on each side of an RS232 link. A PC or a terminal are examples of a typical DTE device. DTE are commonly equipped with a male SUB D9 or SUB D25 connector. All pinout specifications are written from a DTE perspective

DTE

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 12 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

SUBD9 - PIN Configuration for RS232 communication Protocol

RTS & CTS Signals are not used

Pin 1 : Not Used Pin 2: RX Data (DTE), TX Data (DCE) Pin 3: TX Data (DTE), RX Data (DCE) Pin 4: Not Used Pin 5: Signal ground Pin 6: Not Used Pin 7: Not Used Pin 8: Not Used Pin 9: Not Used

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 13 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

7. MEASUREMENT DATA GENERAL FRAME FORMAT

Header

Payload Data

Frame Check Sequence

Header Field: contains all the information about the BeanDevice status & current configuration. Payload Data Field: Contains all the data acquisition performed by the BeanDevice; Frame Check Sequence Field: Contains the extra checksum characters added to the RS232 frame for error detection and correction; Two kinds of measurement frame format are available: A long Data frame, is fully dedicated to low duty cycle measurement, it includes the date of a measurement A short Data frame is fully dedicated to high stream measurement;

1. LONG FRAME DATA HEADER FIELD


Long Frame Data is only available with the following measurement mode: LDCM- Low Duty Cycle Measurement Alarm Packet Math One Shot Packet Math Streaming: First Frame only;

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 14 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Cf. the BeanDevice user manual for more information about the measurement mode

Long Frame Header Field name Full Data Length Description length 0 Index

Full Data Length : Header + Payload Data + 1 byte Checksum (This field is not included in the Full Data Length)

Command ID

Corresponds to Long Frame Message Fixed Value: 0x1F

1 byte

BeanDevice components

ID MAC Address Network Address PAN ID

8-bytes 2-bytes 2-bytes 1-byte

3 11 13 15

Measurement mode

0x11 -> Low Duty Cycle Mode 0x22 -> Alarm Mode 0x55 -> Packet Math One Shot Mode 0x66 -> Packet Math Mode 0x99 -> Streaming Mode

Payload Data Length Payload data length in bytes

1 byte

16

2. SHORT FRAME DATA HEADER FIELD


Short Frame Data is only available with the following measurement mode: Streaming : Measurement data;

Short Frame Header Field name Full Data Length Description length 0 Index

Full Data Length : Header + Payload Data + 1 byte Checksum (This field is not included in the Full Data Length)

Command ID

Corresponds to a short frame message GATEWAY_ID_SENSORS_VIEW_LONG_MESS Fixed value: 0xAF

1 byte

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 15 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

BeanDevice components PER-Packet Rate

ID Network Address PAN ID Error 0 to 10 000 pts To obtain this value in %, you have to divide it by 100. Example: 56 corresponds to a PER of 0,56%

2-bytes 2-bytes 0 to 10 000 pts

2 4 3

Link Quality 0 to 255 pts Indicator (LQI) Payload Length Data Payload data length in bytes

0 to 255 pts 1 byte

5 17

3. PAYLOAD DATA (LOW DUTY CYCLE MEASUREMENT)


This frame is compliant only with command ID : GATEWAY_ID_SENSORS_VIEW_LONG_MESS Payload Data Long Frame Field name Date of a acquisition data Year Month Day Hour Minute Seconds Number of activated Indicates the number of sensors sensors on a BeanDevice Sensor Channel 1 - Sensor Channel 1 - Identity ID Sensor Data value Description 2 bytes 1 byte 1 byte 1 byte 1 byte 1 byte activated 1 byte 1 byte length Index 17 19 20 21 22 23 24 25 .

Channel 1 Sensor Data acquisition 1-4 bytes acquisition See the list of the BeanDevice version for data conversion See chapter

Sensor Channel 2 - Sensor Channel 2 - Identity ID Sensor Data value

1 byte

Channel 2 Sensor Data acquisition 1-4 bytes acquisition See the list of the BeanDevice version for data conversion ---------------------------------------------------

-------------------

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 16 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Sensor Channel N - Sensor Channel N - Identity ID Sensor Data value

1 byte

Channel N Sensor Data acquisition 1-4 bytes acquisition See the list of the BeanDevice version for data conversion

Exception : In case of TOR sensor technology In this case there is not possible to enable or disable 1 of the eight logic inputs All the eight logic inputs are transmitted into one byte, each bit of this byte means one logic input. Bit0 => channel 1 . Bit7 => channel 8

4. PAYLOAD DATA (PACKET MATH MEASUREMENT)


Frame only compliant with command Id : GATEWAY_ID_SENSORS_VIEW_LONG_MESS

Payload Data Long Frame Field name Date of acquisition a data Year Month Day Hour Minute Seconds Description 2 bytes 1 byte 1 byte 1 byte 1 byte 1 byte length 17 19 20 21 22 23 24 Index

Data acquisition Data acquisition resolution is expressed 1 byte resolution in bits : 8, 16, 24 bits Acquisition Duration Acquisition Frequency (en Hz) Acquisition duration in second unit Sensor acquisition frequency in Hz unit Maximum value is 10kHz activated 1 byte 1 byte 4 bytes 2 bytes

25 27

Number of activated Indicates the number of sensors sensors on a BeanDevice Sensor Id 1 1 ID BeanDevice sensor
st

28 30

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 17 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Sensor Value Sensor Value Sensor Value

1 1 1

Average Sensor 1 average value of samples Maximum Sensor 1 maximum value of samples Minimum Sensor 1 minimum value of samples

3 bytes maximum 3 bytes maximum 3 bytes maximum

31

Sensor 1 Deviation Sensor Id 2 Sensor Value Sensor Value Sensor Value 2 2 2

Standard Sensor 1 standard deviation value of 3 bytes maximum samples 2 ID BeanDevice sensor Average Sensor 2 average value of samples Maximum Sensor 2 maximum value of samples Minimum Sensor 2 minimum value of samples
nd

1 byte 3 bytes maximum 3 bytes maximum 3 bytes maximum

Sensor 2 Deviation -------------------

Standard Sensor 2 standard deviation value of 3 bytes maximum samples --------------------------------------------------1 byte 3 bytes maximum 3 bytes maximum 3 bytes maximum

Identifiant du capteur Nth ID BeanDevice sensor N Sensor Value N Average Sensor N average value of samples

Sensor N Maximum Sensor N maximum value of samples Value Sensor Value N Minimum Sensor N minimum value of samples

Sensor N Deviation

Standard Sensor N standard deviation value of 3 bytes maximum samples

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 18 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

5. PAYLOAD DATA STREAMING MODE First Frame format


This Frame is only compliant with command Id: GATEWAY_ID_SENSORS_VIEW_LONG_MESS Payload Data Short Frame Field name Date of acquisition a data Year Month Day Hour Minute Seconds Description 2 bytes 1 byte 1 byte 1 byte 1 byte 1 byte length Index

Data acquisition Data acquisition resolution is expressed 1 byte resolution in bits : 8, 16, 24 bits Low Duty Measurement (Ct) Cycle Low Duty Cycle measurement, unit : s value 4 bytes

Data sampling Time Sampling Time (unit : s) (Dst)

4 bytes

Data sampling Sampling Frequency in Hertz 2 bytes Frequency (Dsf) The maximum sampling frequency is 10 KHz. Latency time between Latency time between first frame and 2 bytes first frame and second frame (Tr) second frame (Tr) Unit in millisecond (ms) Number sensor of active Active sensor available 1 ID BeanDevice sensor 2 ID BeanDevice sensor ---------------------N ID BeanDevice sensor
th nd st

1 byte 1 byte 1 byte -----------------------------1 byte

Sensor ID 1 Sensor ID 2 ------------------Sensor ID N

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 19 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Next Frame
This Frame is only compliant with command Id: GATEWAY_ID_SENSORS_SHORT_MESS Payload Data Short Frame Field name Sequence Number Sensor Channel1 Sensor Channel2 Sensor Channel3 Sensor Channel3 Description Sequence number of the current 1 byte frame Sensor channel 1 acquisition Sensor channel 2 acquisition sensor channel 3 acquisition Sensor channel 4 acquisition 1 -4 bytes 1 -4 bytes 1 -4 bytes 1 -4 bytes length Index

Data Acquisition

Exception: If the sensor technology is a BeanDevice TOR (All or Nothing Measurement). In this case there is no notion of sensor activation / inhibition. In the measurement frame, each byte will represent the state of digital inputs regardless the number of entries available on this BeanDevice:
Sensor Channel Channel 1 Channel 2 Channel 3 Channel 4 Channel 5 Channel 6 Channel 7

Bit Position

Bit 1

Bit 2

Bit 3

Bit 4

Bit 5

Bit 6

Bit 7

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 20 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

1. BEANGATEWAY DATA COMMUNICATION IN ASCII MODE (ISO/IEC 8859-1:1998)

Frame Format: <Start Word> <Message > <End Word>

Symbol Definition: <Start Word> : SW <End Word> : <LF> <CR> : new line

<CR>: Carriage return char <LF>: Linefeed char


Note : In ASCII mode, any data begins by the <Start Word> and ends by <End Word>

Message Definition: General Format: <Message> : <Command> [ : <Argument1> [ , <Argument2> [ , , <ArgumentN> ] ] ]

Note: arguments between square bracket are optional.

Message with MEAS command: < MEAS Message > MEAS : <Mac Id> , <Network Id> , <Pan Id> , <Measure Mode> , <Measure Data>

<Mac Id> format : XXXXXXXXXXXXXXXX : where X can be the char between 0 and 9 and between A and F (hexadecimal representation) It the unique identifier of the WSN device.

<Network Id> format : XXXX : where X can be the char between 0 and 9 and between A and F (hexadecimal representation) It the current network identifier of the WSN device (useless for the final user).

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 21 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

<Pan Id> format: XXXX : where X can be the char between 0 and 9 and between A and F (hexadecimal representation) It is WSN identifier.

<Measure Mode> format: Define the kind of measure mode and define the following data into the message Measure Mode Value A B C D F Functional Measure Mode Low Duty Cycle Alarm Packet Math One Shot Packet Math Streaming

<Measure Data> format is functions of the previous field <Measure Mode> Low Duty Cycle A Alarm B

<Date> , <Active Sensor Number> , <1st Sensor Id> , <1st Sensor Measure> [ , <2nd Sensor Id> , <2nd Sensor Measure> [ , , <Nth Sensor Id> , <Nth Sensor Measure> ] ]

Packet Math One Shot C Packet Math D

<Date> , <Acquisition Duration> , <Acquisition Frequency> , <Active Sensor Number> , <1st Sensor Id> , <1st Sensor Math Measure> [ , <2nd Sensor Id> , <2nd Sensor Math Measure> [ , , <Nth Sensor Id> , <Nth Sensor Math Measure> ] ]

Streaming F - First Frame:

<Date> , <Low Duty Cycle Measure> , <Data Sampling Time> , <Acquisition Frequency> , <Latency Frame> , <Active Sensor Number> , <1st Sensor Id> [ , <2nd Sensor Id> [ , , <Nth Sensor Id> ] ]

- Next Frames: (see SHORT command)

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 22 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Message with SHORT command: < SHORT Message > SHORT : <Network Id> , <Pan Id> , <PER> , <LQI> , <Stream Measure Data>

<Stream Measure Data> <Sequence Number> , <1st Sensor Measure> [ , <2nd Sensor Measure> [ , , <Nth Sensor Measure> ] ]

Fields explanations:

<Date> : YYYYMMDDHHWWSS where YYYY is the year with Y as numeric char MM is the month with M as numeric char DD is the day with D as numeric char HH is the hour with H as numeric char WW is minute with W as numeric char SS is the seconds with S as numeric char

<Active Sensor Number>: X where X is one numeric char between 1 and 8, define the number of active sensor into the measure message.

<Nth Sensor Id>: X where X is one numeric char between 0 and 7, define the zero indexed sensor id.

<Nth Sensor Measure>: Numeric value between 0 and 65535, define the raw data measure for the previous sensor id

<Acquisition Duration>: Numeric value that defines the sampling duration in second unit (Math Mode) , the field length varies

<Acquisition Frequency>: Numeric value that define the sampling frequency in Hz unit, the field length varies

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 23 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

<Nth Sensor Math Measure> format: <Average Value> , <Maximum Value> , <Minimum Value> , <Standard Deviation Value> These four values are numeric value

<Low Duty Cycle Measure>: Numeric value in second unit, the field length varies

<Data Sampling Time>: Numeric value in second unit, the field length varies

<Latency Frame>: Numeric value in second unit, the field length varies

Frame Examples:

Low Duty Cycle example: Measure data from a BeanDevice in Low Duty Cycle measure mode which: Mac Id is 01 02 03 04 05 06 07 08 Network Id is 0003 Pan Id is 1234 The current measure mode is Low Duty Cycle mode Measure date is 2008/08/31 10:03:25 3 activated sensors sensor id 0 has a raw value = 12750 sensor id 1 has a raw value = 25632 sensor id 2 has a raw value = 35187 SWMEAS:0102030405060708,0003,1234,A,20100831100325,3,0,12750,1,25632,2,35187<LF><CR>

Streaming example: Measure data from a BeanDevice in Streaming measure mode which: Mac Id is 01 02 03 04 05 06 07 08 Network Id is 0003 Pan Id is 1234 The current measure mode is Streaming mode Measure date is 2008/08/31 10:03:44
Document Internal Reference : BGT_RS232_DO

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Page : 24 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

Low Duty Cycle is 3780 sec = 1:03:00 Data Sampling Time is 3600 sec = 1 hour Acquisition Frequency is 200Hz The latency Frame is 150ms 2 activated sensors sensor id 1 sensor id 3

The first frame which describe this measure mode is SWMEAS:0102030405060708,0003,1234,F,20100831100344,3780,3600,200,150,2,1,3<LF><CR>

Then the following measure frames are generated like that : SWSHORT:0003,1234,0,210,112,13758,38258<LF><CR> SWSHORT:0003,1234,0,209,113,13759,38256<LF><CR> SWSHORT:0003,1234,0,210,114,13758,38257<LF><CR> Three continuous measure frames from the same device: Network Id = 0003.

Packet Math Mode example: Measure data from a BeanDevice in Low Duty Cycle measure mode which: Mac Id is 01 02 03 04 05 06 07 08 Network Id is 0003 Pan Id is 1234 The current measure mode is Packet Math mode Measure date is 2008/08/31 10:03:25 Acquisition duration is 30 seconds, for an acquisition frequency of 500Hz 3 activated sensors sensor id 0 has values avg : 5000 max : 6000 min : 4000 std dev : 1000

sensor id 1 has values


Ref: BeanDevice User Manual

avg : 500 max : 750 min : 250 std dev : 250


Publication date : 12/06/2010 Document Internal Reference : BGT_RS232_DO Page : 25 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

SWMEAS:0102030405060708,0003,1234,D,20100831100325,30,500,2,0,5000,6000,4000,1000,1,500,750, 250,250<LF><CR>

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 26 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

8. BEANDEVICE SPECIFICATIONS
1. BEANDEVICE VERSION
This following table describes succinctly the different BeanDevice version available:

BeanDevice Version AN-420 AN-mV AN-V AX-3D

Description Wireless acquisition system for current Loop 4-20 mA signal Wireless acquisition system for low voltage +/- 20mV signal Wireless acquisition system for +/- 5V or +/-10V signal Wireless tri-axial accelerometer +/-2g and +/-10g

Measurement range (in points) 0-65535 0-65535 0-65535 0-65535

AX-HD

Wireless mono-axial accelerometer +/-10g

0-65535

HI-INC

Wireless inclinometer: +/-90 +/-30 +/-15 , ,

0-65535

TSI

Wireless temperature sensor

0-65535

TH

Wireless Temperature/humidity sensors

0-65535

TOR

Wireless All or Nothing measurement

0-255

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 27 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

2. DATA CONVERSION ON THE DTE EQUIPMENT


All the raw data received by your DTE equipment must be converted into a unit reflecting your measurement technology. For each type of BeanDevice, the conversion equation is different.

A. BEANDEVICE AN-V
The following conversion equation must be performed: Converted_Data = Offset + Ratio* Raw_Data(bits) Measure Range If measure range = 0-10V Bipolar/Unipolar Measure Unipolar 0 -5 0 -10 Offset Ratio 10/65535 10/65535 20/65535 20/65535 Unit to display V V V V

If measure range = -5V-5V Bipolar If measure range = 0-20V Unipolar

If measure range = -10- Bipolar 10V

Example: For a raw data value of 55000 points. The converted value is: 55000*10/65535 = 8,39 Volts in unipolar measurement, and 3,39Volts in bipolar measurement.

B. BEANDEVICE AN-420
The following conversion equation must be performed: Converted_Data = Offset + Ratio* Raw_Data(bits)

Measurement range for converted measurement Current Loop : 4-20 mA

Offset 0

Ratio 20/65535

Converted unit mA

Example: For a raw data value of 57000 points. The converted value is: 57000*20/65535 = 17,395 mA

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 28 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

C. BEANDEVICE T-SI
The following conversion equation must be performed:

Converted_Data = Offset + Ratio*Raw_Data(bits)

Measurement range for converted data Temperature : -50C-150 C -50

Offset

Ratio 200/2047 C

Unit

Example: For a raw data value: 1200 bits. The converted value is: 1200*200/2047 - 50 = 67, 25 C

D. BEANDEVICE T-H
The following conversion equation must be applied: Converted_Data = Offset + Ratio*RX_Data(bits) Measurement range for converted data Temperature : -40 to +125 C Humidity : 0 to 100%RH 0 100/32767 %RH -40 Offset Ratio 165/32767 C Unit

Example: For a raw data value of 22000 pts for temperature and 5000 pts for Humidity. The converted value is: 22000*165/32767 = 110, 78 C 5000*100/32767 = 15,26 % RH

E. BEANDEVICE TOR
No conversion

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 29 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

F. BEANDEVICE AX-3D

The following conversion equation must be performed: Converted_Data = Offset + Ratio*RX_Data(bits)

Measurement range for converted data Acceleration : +/- 2g Acceleration : +/- 10g -2 -10

Offset

Ratio 2/65535 10/65535 g g

Unit

Example: For a raw data value: 2500 bits. The converted value is (for a +/- 2g accelerometer): 2500*2/65535 - 2 = -1,923g

G. BEANDEVICE HI-INC
The following conversion formula must be performed:

where: Offset = output of the device at 0 inclination position, Sensitivity is the sensitivity of the sensor and VDout is the sensor raw data value in bits. The nominal offset is 32765 bits and the sensitivity is : Inclinometer version +/-90 +/-30 +/-15 26208 52416 104864 Sensitivity ( in bits)

Angles close to 0 inclination can be estimated quite accurately with straight line conversion but for the best possible accuracy, arcsine conversion is recommended to be used. The following table shows the angle measurement error if straight line conversion is used. Straight line conversion equation:

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 30 / 31

BeanAir 1, mail Gay Lussac 95000 Neuville-Sur-Oise France

Document Version : 1.2 R5 BeanGateway RS232 Data Output

H. BEANDEVICE SUN-T

The following conversion formula must be performed: Converted_Data = Offset + Ratio*RX_Data(bits)

Measurement range for converted data Sunshine : 0 to 65000 Lux 0

Offset

Ratio 1/100 Lux

Unit

Example: For a raw data value: 2200 bits. The converted value is 2200/100 = 22 Lux

Ref: BeanDevice User Manual

Publication date : 12/06/2010

Document Internal Reference : BGT_RS232_DO

Page : 31 / 31

Potrebbero piacerti anche