576
50
Zoom out
Zoom in
Previous page
1/60
Next page
1.2. Send Command
1.1.2. Introduction
Command packets consist of "Header" and
"Payload".The Packet Header is consistent for all
packets.The Packet Payload type and content
varies based on the type of packet sent.The
entire packet size is variable, being the sum of
the fixed-size Packet Header and variable-sized
Packet Payload.
Packet Header (fixed size) Packet Payload (variable size)
Tabl e 4
Packet Header Format
Introduction
All Packets use the same Packet Header format
illustrated in Table 5.
Byte 0 1 2 3 4 5 6
Magic Number Type Packet Payload Size CRC
0xBE 0xEF type size_lo size_hi crc_lo crc_hi
Tabl e 5
The Packet Header size is fixed at seven bytes
(Intel byte ordering is used).The following code
fragments are taken from these source files
The Packet Header definition is shown below:
typedef struct
{
BYTE ePacketType;//type of the
payload
WORD nPacketSize;//size of the
payload
WORD nCRCPacket;//CRC for the
entire packet
} PACKET_HEADER;
Magic Number
The Magic Number is a fixed value that is used
to insure packet alignment if there are partial
packets received or bytes lost.
The Magic Number is a WORD in length (2
bytes).The Magic Number value is 0xEFBE.
Because Intel byte ordering is used, the ls-byte
of the word is sent first (byte0 = 0xBE), then the
ms-byte (byte1 = 0xEF).
50
User Manual BDS4621
BDS4621_EN.qxd 13-12-2004 10:38 Pagina 50
50


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Philips BDS4621 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Philips BDS4621 in the language / languages: Dutch as an attachment in your email.

The manual is 2,38 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info