Questions tagged [serial-communication]

Serial communication is the process of sending and receiving data via communication channel bit by bit sequentially, one bit at a time.

Serial communication is used for all long-haul communication and most computer networks, where the cost of cable and synchronization difficulties make parallel communication impractical.

Main advantages of serial communications:

  • fewer interconnecting cables (e.g. wires/fibers) and hence occupies less space. The extra space allows for better isolation of the channel from its surroundings;
  • less crosstalk, because there are fewer conductors in proximity.

Data sent serially this way. When 8-bit data set D0..D7 is transferred into the output buffer to be transmitted, usually it is still in parallel form. This output buffer converts this data into Serial data (PISO) (Parallel In Serial Out), MSB (Most Significant Bit) first or LSB (Least Significant Bit) first as according to the protocol. And than data is transmitted in Serial mode via communication channel (cable, radio etc.). When this data is received by recipient in its receiver buffer, the receiver buffer converts it back into parallel data (SIPO) (Serial In Parallel Out) for further processing:

Serial transfer

Generally, all serial protocols can be divided into two groups: synchronous and asynchronous.

A synchronous serial communication is always coupled with a CLOCK signal, so that all devices on the serial bus share a common clock. This particular configuration allows a simpler and often faster data transfer, but also requires an additional channel to communicate. I²C and SPI are two synchronous serial communication protocols.

An asynchronous serial communication, on the other hand, does not use an external CLOCK signal and therefore requires less I/O channels for communication. At the expense of this, a reliable system for transmitting and receiving data must be implemented. The most common serial protocols are Bluetooth, Xbee, GPS module.

More information:

https://en.wikipedia.org/wiki/Serial_communication

Asynchronous serial communication

Universal asynchronous receiver-transmitter

Synchronous serial communication

Universal synchronous and asynchronous receiver-transmitter

RS-232

Inter-Integrated Circuit (I²C)

Serial Peripheral Interface (SPI)

920 questions
-1
votes
1 answer

Arduino AC Dimmer - serial communication lost due to interrupt

I 've made a pcb for a wireless ac light dimmer which is based on ATMega328p(Arduino Uno), 433 MHZ UART module for wireless communication, a TRIAC for ac load dimming and a MOC3020 for zero crossing detection for the arduino interrupt. Briefly, I…
-1
votes
1 answer

ASCII character for 0 is differenct in vb6.0 compared to c#

ASCII character for 0 is differenct in vb6.0 compared to c#. I have converted vb6.0 code to c# where i need to send hex data as characters in port communication. C# - Comm1.Write('/0').ToString() --> gives char as /0. VB6.0 - mscomm.Output(char(0))…
Alok Sharma
  • 85
  • 1
  • 5
-1
votes
1 answer

Read after restart - RS232 Serial communication using Serial Library - C++

I am trying to read from RS-232 with serial connections by using serial libraries for C++ and some samples found at: http://www.codeproject.com/Articles/992/Serial-library-for-C Is there any signal detection method or an event which lets me know. I…
-1
votes
1 answer

Serial COM Programming : Random Numbers

i need a little help with my coding.. see the coding below is used if we were to write a string and send through a com port.. what if we were to generate random strings and send it through a com port.. what do i actually have to change in the…
-1
votes
1 answer

How to get multiple values from Arduino "almost" real-time in C#?

So I have this C# application which gets values via serial communication from Arduino. I color some circles depending on values of some pins (digital pins). When I run the application I have a little delay, like almost a second which I think is too…
user3672802
  • 63
  • 1
  • 12
-1
votes
1 answer

Serial COM Port For ARM in Processing

I write a program on Processing Language, to show the number of serial port in DropDownMenu list for Intel chip. But I am struggling to run the same program on ARM chip. Can you plz guide me on how do I resolve this issue? import…
Irfan Ghaffar7
  • 1,143
  • 4
  • 11
  • 30
-1
votes
1 answer

Programming pic mcu using serial connector, without using pickit

How do I dump bootloader (.hex) file to my pic18f4620 mcu using usb to serial connector(RS232)? I am not using pickit like burner/ programmer device. And as well how do I enable/ disable in-circuit programming mode?
Amar Kamthe
  • 2,524
  • 2
  • 15
  • 24
-1
votes
4 answers

serial communication via TCP/UDP sockets

In Linux I use kissattach to create an ax.25 interface for serial port communication. With this, I'm able to send/receive Data to/from these ports via UDP/TCP sockets. Now I need to set up the same thing in Windows 7, is there any similar Program?
Cittles
  • 19
  • 6
-1
votes
1 answer

How to emit the "F5 key pressed event" through Serial Port?

I'm writing an application that communicates through serial port device, and I want to write a command that will input the F5 key. my code is: int main() { SerialPort myPort = new SerialPort("COM7", 115200, Parity.None, 8, StopBits.One); …
-1
votes
1 answer

Issue with receiving Buffer Data from the Serial Port Communicator using C#

I am communicating with a machine by serial port connected through RS232 cable. After passing the credentials I am able to get the data from the machine as client if the buffer storage of the machine is empty (clean). As soon as I close my…
user3725571
  • 55
  • 1
  • 2
  • 8
-1
votes
1 answer

Rs232 arduino issue

I have a little confusing about arduino uno. I use Serial.print("hi") code then it "hi" appears on the serial monitor. I also use rs232/ttl converter which are connected pin 1 and 0 on the arduino properly. Then I realize that when…
-1
votes
2 answers

FPGA interface protocol

I am looking for a very fast protocol to implement interface communication between FPGAs (at the moment I am using emulated Virtex-7 FPGA). Actually my requirements for the project I work on are really narrow. I need to transfer data in the order…
camillo_benso
  • 107
  • 2
  • 2
  • 7
-1
votes
1 answer

Communication with ModEEG through COM port

I want to communicate with device which firmware is described there Here is my code. But in that code I receive nulls, negative numbers and other trash. What's wrong in my code?
skayred
  • 10,603
  • 10
  • 52
  • 94
-2
votes
1 answer

How to send two separate variables of value > 255 through serial USB communication between Arduino DUE and python ( Jetson Nano)?

I am trying to communicate between Arduino Due and Jetson nano through usb serial communication. I want send two separate signals (integer values) from Jetson to Arduino to control a DC motor and servo motor and get their speed and position feedback…
-2
votes
1 answer

Does anyone have a simple code I can reference for serial communication from Pi to Arduino?

If I make a loop on my Raspberry Pi from 1 to 10 and assigned to a variable x for a small example, how do I take it and transfer it to an Arduino via Serial to be able to be used for an angle for my stepper motor or to simply make it usable as a…