Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

to receive data in serial communication

Asked by PK

PK (view profile)

on 6 Feb 2012
Latest activity Edited by Image Analyst

Image Analyst (view profile)

on 2 Oct 2013

i just got a sample code for serial communication from the link referred by the contributor JAN SIMON but the problem is i need to press a button to receive the data from another PC can any one tell which logic can be used to receive data from the terminal of other PC



PK (view profile)


No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 6 Feb 2012

There is no special logic for this case. If you are using 9600 or faster then using hardware flow control is recommended.

If the two PCs are connected directly together then you need a "null modem cable".

1 Comment


PK (view profile)

on 7 Feb 2012

i tried the same and the baud is set to 9600 and any other baud is used am getting some garbage value

Walter Roberson

Walter Roberson (view profile)

Contact us