background image

Chengdu Ebyte Electronic Technology Co.,Ltd.

E104-BT12LSP User Manual

Copyright ©2012–2021

Chengdu Ebyte Electronic Technology Co.,Ltd.

13

4.2.1 Parameter Configuration

Configuration data is used for reading and writing module parameter information and for device access operations

in the following format:

Directive

1 byte

Operational code

1

byte

Data

N byte

Send

0xC0

0~255

Request data

Receive 0x40

0~255

Response data

Instructions: Proper configuration operation gives corresponding response data. If the configuration error returns the

error code, the following:

Error code

Explanation

0x0D

invalid parameter

0x0E

Parameter length error

0x0F

error instruction

4.2.1.1 Get the current network address and status of the device

Network keys are used for network IDs assigned by provisers during network formation in the following format.

Operation
al code

Parameter

Request

0x00

Respond

0x40

06 40 00 data

Example

Request

02 C0 00

Respond

06 40 00 DATA[3]

Description:
This instruction is only applicable to E104-BT12SP-L, E104-BT12SP-N to obtain network
addresses and configure networks
DATA analysis
Unorganized network:
DATA[0] =0x00

DATA[2],DATA[3]0

Network :

DATA[0] =0x01

DATA[2],DATA [3] is the module network address.

4.2.1.2 Baud Settings

Operational code

Parameter

Request

0x01

Baud rate serial number to be set (range 0x00~0x07)

Respond

0x01

Returns the current baud rate serial number.

Example

Order

Baud rate specification

03 C0 01 xx

Xx represents the baud rate label to be set

0x00~0x07

00

230400

Содержание TLSR8253F512 Serias

Страница 1: ...hengdu Ebyte Electronic Technology Co Ltd E78 900M22S User manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 1 E104 BT12LSP User Manual TLSR8253F512 Serial Patch SIG Mesh Group Module ...

Страница 2: ... 2 BASIC CIRCUIT 8 4 FUNCTIONAL INTRODUCTION 9 4 1 BASIC CONCEPT 10 4 2 DATA FORMAT 12 5 SWITCH DIO 20 5 1 USE OF SWITCHES 21 6 QUICK GET START 21 6 1 RESTORE FACTORY SETTINGS RESTORE 21 6 2 EQUIPMENT ENTERS THE NET AND CONTROLS THE EQUIPMENT 22 6 3 SIG MESSAGES 28 6 4 TRANSMISSION OF INFORMATION 29 6 5 LOW POWER CONSUMPTION E104 BT12LSP 31 7 FAQ 31 7 1 POOR TRANSMISSION RANGE 31 7 2 MODULE IS EAS...

Страница 3: ...ied is given including but not limited with respect to the accuracy correctness reliability and fitness for a particular purpose of the information This document may be revised by EBYTE at any time For most recent documents visit www ebyte com Note The contents of this manual are subject to change due to product version upgrades or other reasons Chengdu Ebyte Electronic Technology Co Ltd reserves ...

Страница 4: ...ation L Lightness model one key implementation of lamp control application scene and support Skycat elves Suitable for Internet of Things information gathering large scale network communication smart home etc 1 2 Feature Support TmallGenie Support TmallGenie PCB carrier antenna 60m maximum open communication distance Multi stage adjustable power at 10 dBm serial port baud rate dynamic compatibilit...

Страница 5: ...yp Max Voltage supply V 1 9 3 3 3 6 3 3 V ensures output power Communication level V 3 3 For 5V TTL it may be at risk of burning down Operating temperature 40 85 Frequency MHz 2400 2483 5 ISM band Power consumption Transmitting current mA 21 Instantaneous power consumption at 10 dBm output Receiving current mA 6 1 Turn off current μA 13 32 maximum emitting power dBm 10 Receiving sensitivity dBm 96...

Страница 6: ...efinition No Pin item Pin direction Application 1 GND Ground wire connect to the power reference ground 2 PWM1 PWM Output Green light corresponding to SIGMESH HSL 3 PWM2 PWM Output Red light corresponding to SIGMESH HSL 4 NC 5 NC 6 DIO1 Input Switch input foot PA0 foot for TLSR8253 7 DIO2 Input Switch input foot PA1 foot for TLSR8253 8 NC 9 NC 10 SWM 11 SWS 12 NC 13 LINK Output Network indicator H...

Страница 7: ...le occurs between recommended supply voltages if exceeded Please check the stability of the power supply The voltage cannot fluctuate significantly and frequently Please check the stability of the power supply The voltage cannot fluctuate significantly and frequently When designing power supply circuits for modules it is often recommended to keep more than 30 percent of the spare which is advantag...

Страница 8: ...formance Keep away from the 2 4 GHz TTL protocol in some physical layers e g USB 3 0 The module must not be mounted inside the metal housing which will greatly weaken the transmission distance 3 2 Basic Circuit 1 As shown in the picture the module can only connect the VCC GND TX and RX to perform the communication test 2 PWM1 PWM2 PWM3 corresponding to SIGMESH HSL model 3 DIO1 PA0 boot correspondi...

Страница 9: ...0M C E 70M B D 70M Interpreting the simulation application scene above The distance from Module A to Module C is 70 meters beyond 50 meters of our module s transmission distance so module A cannot send data directly to module C If a module B is placed between module A and module C the data will be relayed by B and then received by module C Module A needs to send data to the whole thing The network...

Страница 10: ...ill be there The following link reaches module E where A sends data to B B to C C to D D to E 4 1 Basic Concept 4 1 1 NetKey Network keys are used to protect network layer communications is a key generated by using a random number generator that meets the core specifications See Mesh Profile 3 86 4 1 2 AppKey Application keys are used to protect the keys of the upper transport layer Generated usin...

Страница 11: ...ssion package contains APP related SDKs for customer development A single device supports only one role In the EBYTE scheme our modules support three roles provision node and mesh node LPN node which is the device responsible for networking Four ways to connect SIG_mesh 1 ADV Not Relayed Connection not capable of broadcasting This applies when two nodes send and receive messages to and from each o...

Страница 12: ... Unicast Element An address corresponds to an element from the Model introduction above We can call it an elemental address It is the unique address assigned to a Node node by a PROVISION device during a PROVISION process Each Node device in the same Mesh network may have multiple addresses E104 BT12USP is a Provision device and E104 BT12NSP is a Node device Introduction to Use 4 2 Data Format All...

Страница 13: ...r instruction 4 2 1 1 Get the current network address and status of the device Network keys are used for network IDs assigned by provisers during network formation in the following format Operation al code Parameter Request 0x00 Respond 0x40 06 40 00 data Example Request 02 C0 00 Respond 06 40 00 DATA 3 Description This instruction is only applicable to E104 BT12SP L E104 BT12SP N to obtain networ...

Страница 14: ... code Parameter Request 0x02 None Respond 0x02 Returns the serial number of the set baud rate Example Order Return Explanation 02 C0 02 03 40 02 xx xx represents the baud rate number 00 230400 01 128000 02 115200 03 76800 04 57600 05 19200 06 9600 07 4800 Note This instruction is applicable to E104 BT12SP L and E104 BT12SP N configuration operation 4 2 1 4 Power Settings Operational code Parameter...

Страница 15: ...al code Parameter Request 0x04 None Respond 0x04 Returns the serial number of the power currently in use Example Order Return Explanation 02 C0 04 03 40 04 xx xx represents power number 00 10dBm 01 8dBm 02 6dBm 03 4dBm 04 2dBm 05 0dBm 06 2dBm 07 4dBm 08 6dBm 09 8dBm 0A 10bBm 0B 25bBm 0C 30bBm Note This instruction is applicable to E104 BT12SP L and E104 BT12SP N configuration operation 4 2 1 6 Reb...

Страница 16: ...plicable to E104 BT12SP L and E104 BT12SP N configuration operation Status value 00 indicates success 4 2 1 8 MAC Read Operation al code Parameter Request 0x07 None Respond 0x07 Returns the device s current MAC address Example Request 02 C0 8 Respond 08 40 11 MAC 6 Note This instruction is applicable to E104 BT12SP L and E104 BT12SP N configuration operation 4 2 1 9 Obtaining Software Version Numb...

Страница 17: ...iad to Ali and Set Up Device Information document 4 2 1 12 Set LPN to Time Out and Return to Sleep Operation al code Parameter Request 0x0B None Respond 0x0B Set time out sleepout Example Request 04 C0 0B TIME Respond 05 40 0B TIME Note Default 5000 ms This instruction be for e104 BT12SP L configuration operation only TIME 16 cimal segment mode Column Set 5000 ms convert 5000 to 16 digit value 138...

Страница 18: ...TIME 16 cimal segment mode Column Set 5000 ms convert 5000 to 16 digit value 1388 When you set it you need to write 8813 04 C0 0D 8813 4 2 1 15 Reading LPN polling friend time Operation al code Parameter Request 0x0E None Respond 0x0E Set time out sleepout Example Request 04 C0 0E Respond 05 40 0E TIME Note This instruction be for E104 BT12SP L configuration operation only TIME 16 cimal segment mo...

Страница 19: ...s 8813 8813 is small end mode the actual value is 1388 converted to decimal value is 5000 4 2 2 SIG Messages The E104 BT12 module supports SIG Generic and Lighting HSL model control see Mesh Profile and Mesh Model introduction for relevant SIG message definitions The SIG message format is as follows Send Order 1byte Target address 2 bytes Sig mesh message 0xC1 Primary address of Target device Requ...

Страница 20: ...e time to less than 8 bytes the data format is as follows Send Order 1byte Target address 2 bytes Data 0xC2 Primary address of Target device Valid data Receive Order 1byte Target address 2 bytes Original address 2 bytes Data 0x42 Primary address of Target device Source device master address Valid data For example Device 0001 sends the hexadecimal data of 00112233445566778899 to device 0004 Sender ...

Страница 21: ...ch function Then B device element is then assigned to C002 and C device to C003 If the two switches DIO1 through device A are connected high then device B lights up DIO If one is low then device B lights go out Switch DIO2 to low C device lights out DIO2 to high C device lights on 6 Quick get start This chapter introduces how E104 BT12SPs form networks quickly and how to control network message tr...

Страница 22: ...o have Ali triad information before use See Documentation Apply Triad to Ali and Set Up Device Information 6 2 1 Using Tmallgenie in the Internet Voice enters the net directs the voice command Tmallgenie Find Smart Devices and then acts on Tmallgenie s cue 6 2 1 1 Switching Using Tmallgenie Use voice command Tmallgenie to turn on or off the lights 6 2 2 Using Uploader Usb Dangol 6 2 2 1 Networking...

Страница 23: ...Ebyte Electronic Technology Co Ltd 23 See the Tutorial on Use of Tutorials for details 6 2 3 Mobile phone APP access and control devices 6 2 3 1 Access to the network 1 Open the APP and click this plus sign 1 If there is an unstructured network around the following diagrams will appear in sequence ...

Страница 24: ...Chengdu Ebyte Electronic Technology Co Ltd E104 BT12LSP User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 24 ...

Страница 25: ...ng in the previous step returns to the APP home page you can see a lamp click on the lamp and see that the device s LED is switching on and off according to your operation 4 When you press the length of the lamp it will appear on the page as shown below while sliding colored circles will change the color of the lamp to the color you to the color you want ...

Страница 26: ...nual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 26 6 2 3 2 Publishing and Subscribing Grouping 1 Pressing multiple devices in turn into GROUP and then ticking the options on this page represents that you are dividing your devices into this group ...

Страница 27: ...ronic Technology Co Ltd E104 BT12LSP User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 27 2 When grouping is successful group control can be carried out through GROUP on the mobile phone homepage ...

Страница 28: ...quipment If the Target address is the group address the device in the current group will respond See Mesh Model 3 2 1 2 Generic OnOff Set for more information E104 BT12SP sends the light off command generic onoff command command to control the network equipment See Mesh Model 3 2 1 2 Generic OnOff Set for more information Send 09 C1 0002 8202 01000000 Response 08 41 0002 0001 8204 01 Send 09 C1 00...

Страница 29: ...t addresses Device 0002 broadcasts hexadecimal data for 8202000 Writing the Target address as FFFF is broadcasting where all devices including their own receive data Sender 09 C2 ffff 8202 01 00 00 00 Receiver 0C 42 02 00 FF FF 82 02 01 00 00 00 6 4 1 Fixed point data transmission For example Device 0002 sends hexadecimal data of 82 02 01 00 00 00 to device 0004 Sender 09 C2 0004 8202 01 00 00 00 ...

Страница 30: ...echnology Co Ltd 30 6 4 2 Group address transmission data For example Device 0002 sends hexadecimal data for 82 0200 000 to this group of device C001 Sender 09 C2 0004 8202 01 00 00 00 Receiver 0C 42 02 00 04 00 82 02 01 00 00 00 6 4 2 1 Acquisition of Group Addresses using APP Add 1 down to the address shown below ...

Страница 31: ... address to transmit data to an LPN For example e8 ff 00 00 00 00 02 01 02 00 80 1b 02 00 01 c0 18 0A 00 00 e8 ff 00 00 00 00 02 01 02 00 80 1b 02 00 01 c0 180A 00 00 Cmd fixed field fix fix Target address Sig op Element address Group address ModleID fix 7 FAQ 7 1 Poor transmission range When there is a linear communication barrier the communication distance decays accordingly Temperature humidity...

Страница 32: ...e error rate is too high There is interference from the same frequency signal nearby away from the source of interference or from modifying frequency and channel The clock waveforms on the UART are not standard Check for interference on the UART line Poor power supply may also cause confusion Be sure to ensure the reliability of the power supply 8 Welding instruction 8 1 Reflow Welding Temperature...

Страница 33: ...Chengdu Ebyte Electronic Technology Co Ltd E104 BT12LSP User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 33 8 2 Backflow Welding Curve ...

Страница 34: ...e Description Issued by 1 0 2021 04 14 Initial version About us Technical support support cdebyte com Documents and RF Setting download link www ebyte com Thank you for using Ebyte products Please contact us with any questions or suggestions info cdebyte com Phone 86 028 61399028 Web www ebyte com Address B5 Mould Park 199 Xiqu Ave High tech District Sichuan China ...

Отзывы: