No-Code Electrical Development. No-Code Lighting Development. No-Code Sensor Development. No-Code Gateway Development. IoT SDK. Link SDK. Gateway SDK.
Screen Device SDK. Sub-Device SDK. Video Device SDK. Edge Computing. IoT Edge Gateway. Device Driver Development. Product Solution. Major Appliance. Small Appliance.
Kitchen Appliance. Cleaning Robot. Smart Lock. More Solutions. App Develop. App Development. All in One App. OEM App. Industry App SDK. App UI BizBundle. Extension SDK. Device Panel Development. Panel SDK. UI Studio. Cloud Develop. Cloud Development. Fundamental Service. IoT Core. SaaS Development Framework. Device Log. IoT Private Cloud. IoT Edge Cloud. Data Analytics. Data Visualization. IoT Video Live Stream. IoT Video Cloud Storage. Email Service. Voice Message Service. SMS Service.
Mobile Push Service. Weather Service. Location Based Service. Business PaaS. Smart Hotel PaaS. Smart Apartment PaaS. Commercial Lighting PaaS. Cloud Development Introduction.
Cloud Development Guide. Tuya IoT App Development. Tuya Data Analytics Platform. Help Center. Tutorials and Tools. Video Tutorials. Module Debugging Assistant. Service and Support. Hardware Product Testing. Hardware Product Certifications. Industrial Designs. Log In. Go to main website. Go to IoT Platform.
Hardware Product Development Tuya provides various smart product development methods, including no-code, low-code, and TuyaOS pro-code, helping to bring product development to the IoT age. Create smart electrical products like switches, sockets and breakers without coding. Create smart lighting products like bulb, ceiling and outdoor lights without coding. Create smart sensors like contact sensors and PIR without coding.
Create fixed cameras, PT cameras, and bullet cameras without coding. Follow Zigbee 3. Global multilingual app - your smart home control hub. Create your app online rapidly and customised freely. Cloud Development Tuya Cloud Development provides fundamental IoT services, vertical industry services, and PaaS services to help developer quickly develop IoT platform for different industries. Fundamental Service Business PaaS.
Cloud Service Center. The guidebook of how to use Tuya IoT Platform to quickly develop a smart product. Quick Introduction of how to develpe a cloud application and to control smart devices on Tuya Cloud Platform. Detailed guidelines of how to create cloud projects, achieve device controls, API management, and more. Develop an IoT App, support the seamless synchronization between edge and cloud, maximizing the advantages of IoT. A brief introduction to Tuya Data Analytics Platform and how it provides insight and improves monetization.
Please visit our Help Center if you have further questions about us. Documentation search Search by title. Serial Communication Protocol. Protocol Parsing. TuyaOS Development. Function Test. Product Certificate. Production Test.
Serial Communication Protocol Last Updated on : download. Version 1 It is used for updates and extensions. Command 1 Frame type Data length 2 Big-endian Data N Entity data Checksum 1 Start from the header, add up all the bytes, and then divide the sum by to get the remainder. All data greater than one byte is transmitted in big-endian format. Generally, one command is sent by one party and received by the other party synchronously.
For more information, see the Protocol list. Except for the raw data type, all others belong to the object type. The status data can contain data units of multiple DPs. After the device is powered on, the MCU sends this command to notify the module of feature configuration after the command 0x01 and before the command 0x If no new feature configuration is required, the MCU does not need to send this command.
The MCU must send this command each time after the module is powered on or the module is restarted. The fields of this command will be added as the service is extended. The data format of this field is in JSON string and the data length varies depending on the information type. The length of data that the MCU sends to the module must be at least 2 bytes, namely the sub-command plus a 1-byte data code. If the data length is incorrect, the module will return a failure. The data codes have a one-to-one relationship with the information types.
Make sure you use the correct data code and do not use the reserved code. The common Wi-Fi modules do not support getting their SNs. If a module does not have FFS authorization history, the ffs field will return 0. If a module has FFS authorization history, the ffs field will return 1 , coupled with the SN value to assist in verification.
This appendix only provides the defined contents. Do not use any undefined content. Is this page helpful? Next Doc Protocol Parsing.
About Tuya. Ecosystem Partner. Developer Products. Product Development. Network Module. Online Support. Technical Support. Tuya SRC. Follow Us. Start from the header, add up all the bytes, and then divide the sum by to get the remainder. For more information, see the description of the type fields in the following table. The bytes of a value. Represented in hexadecimal format. Data greater than one byte is transmitted in big-endian format. Represents a DP of Boolean data type.
Valid values include 0x00 and 0x The module uses this value to determine whether the MCU restarts during operation. Indicates the MCU version is 1. The version number must be defined in the format x. Indicates the operation mode of the module. The module automatically enters the pairing mode and waits for pairing after startup.
The module does not enter the pairing mode after startup until the MCU sends the reset command. In pairing mode, if the module is not paired within three minutes, it will automatically exit the pairing mode. Similarly, if a device that is physically reset is shut down due to an outage, it will resume its network connection after startup.
In this mode, if a user removed a device from the app, the network connection history of this device will be cleared. You can implement this mode for devices with a physical reset button or switch to prevent unintended device reset. Indicates the switching time period between the safe mode and anti-misoperation mode. You can set a period between 3 and 10 minutes. If you leave this field empty, the period defaults to 3 minutes.
Indicates the network pairing mode. This enables automatic switching between these two modes. For more information, see Report network status. If you leave this field empty, the IR feature is disabled. For example, 5. For more information about the pin configuration, see the datasheet of your modules. If you want to enable the IR status indicator, see Optional Notification of new feature setting and configure it. Used to enable the low power mode. If you leave this field empty, the low power mode is disabled.
In low power mode, when a device is connected to the router but not executing any commands, its power consumption can be lower than 15 mA on average. When the Wi-Fi and Bluetooth combo module runs in low power mode, it only supports Bluetooth pairing without device control.
If power consumption is not your concern, you can leave this field as is. Indicates the MCU firmware type, which defaults to 9. You can set a value between 10 and 19 to specify a firmware type. Your specified value must match the value of the field Update Channel that appears when you add firmware on the Tuya IoT Platform.
The data length is 2 bytes. Bit0: Bluetooth connection notification applies to Wi-Fi and Bluetooth combo modules. Bit1: RF remote control. Bit2-bit7: reserved, defaulting to 0. The data content follows the definition of the command 0x For more information, see IR feature. If the buffer size is not specified, the module considers the MCU can receive data of any length.
Specifies whether an MCU has a scratchpad. This field only applies to HomeKit accessories currently. Enables new features. Each bit represents a feature. Indicates Wi-Fi status. The size of the update package. The data type is an unsigned integer, and the data is stored in big-endian format. The update package size of a single packet: 0x bytes by default, compatible with legacy firmware 0x bytes 0x bytes.
The data length is 7 bytes. Data[0]: indicates whether the system time is obtained successfully. Data[1]: indicates the year. Data[2]: indicates the month, ranging from 1 to Data[3]: indicates the day, ranging from 1 to Data[4]: indicates the hour, ranging from 0 to Data[5]: indicates the minute, ranging from 0 to Data[6]: indicates the second, ranging from 0 to The data length is 8 bytes.
Data[0]: indicates whether the local time is obtained successfully. Data[7]: indicates the week, ranging from 1 to 7. Data[0]: 0x00 indicates failure and 0x01 indicates success. If Data[0] is 0x01 , Data[1] indicates the signal strength, ranging from 0 to , 0 for the weakest and for the strongest. If Data[0] is 0x00 , Data[1] indicates failure reasons. The data length is 4 bytes. The value is represented in big-endian format. For example, 0x00 0x00 0x28 0x00 represents bytes remaining memory.
L : consumes 1 byte and indicates the length of K. K : indicates the name of the request parameter. Example: L : 0x06 , K : w. Data[0]: 0x failure. Data[1]: 0x no error. Check whether you have subscribed to specific weather services. L : the length of the parameter name.
K : the name of the parameter. T : 0x00 indicates an integer and 0x01 indicates a string. L : the length of the field name. V : the value of the field. BUF[0]: the ID of a sub-map.
A map session can be made up of several maps, such as route maps. Transmission result: 0x Success. The data length is one byte. Data[0]: 0x Failed to receive the router information. Check whether the JSON packet is complete. Regarding the connection result, view the network status. Data[0]: indicates whether the MAC address is obtained successfully. Data[1] to Data[6]: indicates the valid MAC address of the module on a success.
IR status indication: 0x status 1 0x status 2 0x status 3 0x status 4. RF leaning status: 0x enter the RF learning status. Acknowledgement status: 0x Success. The serial number of the key value offset: 0xFF: send all key values in one packet. The number of key values for the last packet is Data T: stands for times. It is 1 byte in length and indicates the number of transmission times. If the module sends learning code , this data is valid and defaults to 0x D: stands for delay.
It is 2 bytes in length and indicates the interval between key values. I: stands for intervals. It is 2 bytes in length and indicates the transmission interval. L: stands for code length. It is 2 bytes in length and indicates the length of data sent by the RF.
C: stands for code. It is N byte s in length and indicates the data sent by the RF. Data content: If learning failed, the MCU will not send this field. If learning succeeded, the MCU can send data in a custom format.
The module returns whether to execute file download. If the MCU returns 0x00 , this field indicates the file size in each packet. The available parameters are as follows.
For more information about reasons, see Appendix 2. The serial number of the file in transfer. The first file is 1. The second one is 2, and so on. The ID of a file, corresponding to the data of id field of the command 0x If act is 0x00 , set this field to 0x If act is 0x01 , set this field to the progress in percentage. If act is 0x02 , this field indicates the error code. For more information, see Appendix 2. When multiple tasks are in the queue, this command will terminate the current task and start the next task.
Other values: Set this field to 0x For more information, see Appendix 3. If the execution result is 0x00 , 0x00 will be returned. If the execution result is 0x01 , a failure reason will be returned.
Voice status code. If the result is 0x01 , this part is empty. If the result is 0x00 , the data is artist and trackTitle. Data[0]: the number of alarms. Data[1]: the operation type. Repeat an alarm. Step 2. Configure the SVI. This makes the switch accessible for network management. Step 4. Configure the default gateway for the switch. Packets generated by the switch and destined for an address other than its management network segment will be forwarded to this address.
This default gateway is used by the switch only for the packets it generates, not any hosts connected to the switch. For example, the following commands would configure the management VLAN interface and default gateway of switch S1 shown in Figure Packets generated by the switch and destined for an address outside of the Activity 1. Go to the online course to use the Syntax Checker in the second graphic to configure the S2 Layer 2 switch. Packet Tracer Activity 1.
Your job is to document the addressing scheme and connections used in the Central portion of the network. You will need to use a variety of commands to gather the required information. I would like to receive exclusive offers and hear about products from Cisco Press and its family of brands.
I can unsubscribe at any time. Pearson Education, Inc. This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.
To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:. For inquiries and questions, we collect the inquiry or question, together with name, contact details email address, phone number and mailing address and any other additional information voluntarily submitted to us through a Contact Us form or an email.
We use this information to address the inquiry and respond to the question. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.
Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.
Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.
If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information ciscopress. On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.
We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.
Pearson automatically collects log data to help ensure the delivery, availability and security of this site. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources. Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site.
While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson but not the third party web trend services to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.
This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising.
Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site. Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure. Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider.
Marketing preferences may be changed at any time. If a user's personally identifiable information changes such as your postal address or email address , we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service informit.
Users can always make an informed choice as to whether they should proceed with certain services offered by Cisco Press. If you choose to remove yourself from our mailing list s simply visit the following page and uncheck any communication you no longer want to receive: www. While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest pearson.
California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services. This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites.
We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information.
This privacy statement applies solely to information collected by this web site. Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information. We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements.
If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way.
Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.
All rights reserved. Cisco Press. Join Sign In. Date: Mar 20, Contents Objectives Key Terms Introduction 1. Chapter Description This chapter introduces and explains the primary functions and features of a router and explains the process for connecting and configuring devices to the router. It continues by describing the process by which routers manage packets, determine data paths, and build routing tables.
0コメント