CNET CWC-854 Instrukcja Użytkownika Strona 28

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 109
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 27
ThinkCore IA241/240 Linux User’s Manual Getting Started
2-19
The testing environment is illustrated in the following figure. However, note that there are
limitations to the example program tcps2.c.
tcps2.c
RS-232 LAN
PC 2PC 1
Write data to PC1
Receive LAN data
Read serial data
Send data to PC2
Serial Rx
Buffer
LAN Rx
Buffer
NOTE The tcps2.c application is a simple example designed to give users a basic understanding of the
concepts involved in combining Ethernet communication and serial port communication.
However, the example program has some limitations that make it unsuitable for real-life
applications.
1. The serial port is in canonical mode and block mode, making it impossible to send data from
the Ethernet side to the serial side (i.e., from PC 2 to PC 1 in the above example).
2.
The Ethernet side will not accept multiple connections.
Przeglądanie stron 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 108 109

Komentarze do niniejszej Instrukcji

Brak uwag