TAILIEUCHUNG - Serial port programming for Windows and Linux

Serial port programming for Windows and Linux | Serial Port Programming in Windows and Linux Maxwell Walter November 7 2003 Abstract While devices that use RS-232 and the serial port to communicate are becoming increasingly rare it is still an important skill to have. Serial port programming at its most basic level consists of a series of steps regardless of the operating system that one is operating on. These steps are opening the port configuring the port reading and writing to the port and finally closing the port. It is possible then to create an API that contains the functions necessary to successfully communicate with the serial port. With a single header file that contains all the functions necessary to communicate over a serial port the implementation details can remain platform dependent as a library that can then be compiled and maintained separately for each operating system. The actual application can then use the common header file as its interface to the serial port. This creates a cross-platform serial interface allowing the creation of code that is more easily portable across operating systems. In this document the functions and steps necessary to use the serial port are detailed and at the end of this document an example cross-platform header file is provided. Keywords Serial Port Programming Linux Windows 1 Introduction The advent of USB has caused a significant decline in the number of devices that communicate using RS-232 and many motherboards today ship without serial ports. This does not mean however that serial port programming is no longer a necessary or relevant skill to posses. Many important and useful devices still in use today date back to pre-USB times and there are still some devices that continue to use the RS-232 protocol for communication. Also because there are far fewer devices that communicate using RS-232 fewer people are exposed to it and thus fewer people learn how to use it making it an even more valuable skill. Serial port programming requires API s provided by the .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.