[UDP] UDP Packet data (CoAP protocol)

Source: Internet
Author: User

UDP Machine Control Project

Protocol Message Format:

Ver + T + TKL + Code + MessageID + 11111111 + Command + Payload /c1>

01 + (00 | 01 | 02 | 03) + (000000)

The E0 4C 1E 5C 4C//dev->ser Device Login Request: message number: 0, ID is xx E0 4C1E,5C

The FF E0 4C 1E 5C 4C//ser->dev Server login response: message number: 0, the ID is xx E0 4C1E 5C 4C

E0 4C 1E 5C 4C//Dev->ser device Logout Request: message number: 1, id is xx E0 4C1E 5C 4C

The FF E0 4C 1E 5C 4C//Ser->dev Server Logout response: message number: 1, ID is xx E0 4C1E 5C /c13>

E0 4C 1E 5C 4C//Dev->ser device Heartbeat request: message No.: 2, ID is E0 4C1E,5C 4C

Server not responding in protocol

3, FF. E0 4C 1E 5C 4C//dev->ser device Data escalation request: message no .: /c7>

E0 4C 1E 5C 4C//ser->dev Server Data escalation response: message No.: 3, ID is E0 4C 1E, 5C 4c

The FF E0 4C 1E 5C 4C//dev->ser app control device request: message number: 4, ID is xx E0 4C 1E 5C 4C

E0 4C 1E 5C 4C//Ser->dev Device response App control: Message No.: 4, ID is E0 4C 1E/5C 4C

    1. The server side returns a response message ID that matches the message ID sent by the device
    2. Device ID using the MAC address form, the device's unique identifier
    3. Device login successful, return response; fail, no response; Exit for the same processing
    4. Heartbeat, 1 minutes hair once, 5 seconds did not receive your response, I will repeat the hair, 5 times in a row without your response, I will re-login

Exception (to be considered, what should be added to the exception to ensure the mechanism)

    1. After landing, in case the network is disconnected. For example, if your display device is already logged in, what will you do if I log in again?

Message data

40020000ff01000c0157a42ee900010203040500

[UDP] UDP Packet data (CoAP protocol)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.