How does the Sync.field synchronize slave nodes in a serial communic?

In summary, the sync.field is a character that is sent by the master node to inform the slave nodes that the next bit stream transition is the beginning of a packet. The slave node uses the faster clock to synchronize with the master node.
  • #1
marellasunny
255
3
Serial communication:Following the Break is the Sync.field. The literature says that as there are no quartz or ceramic resonators in the slave nodes,the sync.field is transported before the protected ID field.I do not understand 2 things here:

1.What does it actually mean for the slave nodes to be "synchronised" in layman terms?
2.How does the sync.field go about in achieving this?

A really simple layman explanation would help.I am a mechanical engineering learning how to use the ARDUINO in a serial interface.
http://www.freepatentsonline.com/6959014-0-large.jpg
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
The receiver is constantly looking at the incoming stream. When the stream shows a constant level longer than the "break" period, on the next stream transition an internal tracking clock starts. Typically this clock is 16 times the the baud rate, so inside the smallest bit stream transition (a single bit) the tracking clock transitions 16 times. During the sync bit, the internal circuitry looks at the stream value at clock 8, or the middle of the bit stream, there after it looks every 16 clocks. Having an odd number of bit slots allows a system with baud clocks slightly different to keep in sync more reliably over a long transfer sequence. <- This is for typical serial communications as used between PC & terminal and such.

Then to confuse matters, some serial communication protocols that transmit packets use a sync field (number of bits defined by the protocol as opposed to a single sync bit of ASYNC SERIAL) which tells the circuitry that this is the beginning of a packet. I believe since you are describing a "protected ID" field, you may be looking at the sync of a packet and not necessarily the bit stream. But a basic understanding of the way the underlying circuitry uses the faster clock to lock onto the incoming bit stream is similar in most protocols.

Serial streams have many protocols that have evolved over the years and may require reading and much staring at diagrams like the one above and longer ones that include entire packets to sort out in one's head the pattern.
 
  • #3
I fear I answered the wrong question (I specified how the RS-232 syncs the bit stream of each character passed). Please specify the communications protocol you are using (I2c, SPI, microwire, 1-wire...).

As I said protocols can be confusing and require an underlying understand of the basic ASYNC capture as well as the protocol packet structure as well.

mitch
 
  • #4
It looks like you are sending RS-232 UART data to an external device. The sync character might have one of two applications. Either the device needs it to reset its higher level protocol, or, after a break, the receiver determines the baud rate from the sync character. (most likely)
 
  • #5
meBigGuy:After reading through the text,I found its the latter-the receiver determines the baud rate from the sync character.The receiver in my case is a slave node(a signal wire from the buttons on my steering wheel),how does a slave node figure out the baud rate from the sync character? Does it have a onboard computer or something?

mjhilger:Your explanation gave me new insight into the structure of the serial data sent from the master node,but I still can't figure out how the slave node practically syncs with the "heart beat" clock from the master node just by calculating the time for 1 single bit.

Thanks.
 
  • #6
Ok, as I suspected, you are confusing protocols and the underlying sync mechanism (easy to do considering both have sync and other terms in common). Vehicles utilize CAN protocol and you may read about it from the wiki http://en.wikipedia.org/wiki/CAN_bus. Look there and see if that answers some of your questions. If you have specific questions, post them here on this thread and we will try to answer. (I'm not very familiar with this protocol, but I will look it over and try to help).
mitch
 

1. How does the Sync.field synchronize slave nodes in a serial communication?

The Sync.field uses a master-slave architecture where the master node sends synchronization signals to the slave nodes. These signals contain information about the current state of the system and the actions that need to be performed by the slave nodes.

2. What is the role of the master node in the synchronization process?

The master node is responsible for initiating the synchronization process by sending synchronization signals to the slave nodes. It also tracks the progress of the synchronization and ensures that all nodes are synchronized.

3. How does the Sync.field handle communication errors during synchronization?

The Sync.field has error detection and correction mechanisms to handle communication errors during synchronization. If an error is detected, the master node will resend the synchronization signals until all nodes are properly synchronized.

4. Can the Sync.field synchronize multiple slave nodes simultaneously?

Yes, the Sync.field is designed to synchronize multiple slave nodes simultaneously. The master node sends synchronization signals to all slave nodes at the same time, ensuring that they are all synchronized in a timely manner.

5. How does the Sync.field ensure data integrity during synchronization?

The Sync.field uses checksums and other error detection techniques to ensure data integrity during synchronization. This ensures that the data received by the slave nodes is accurate and consistent with the data sent by the master node.

Back
Top