Write a minimal terminal emulator which will basically just transmit all characters typed on the keyboard to the serial port and display all characters received via the serial port. Include a set of menu items that will allow a user to:
Select, modify or set the communication parameters such as port number, bit rate, number of data bits, number of stop and start bits, and parity (i.e., “command mode”).
Enter “connect mode”. In this mode, the application goes into a loop in which the keyboard is monitored; when a key is typed, the character is sent to the serial port (after checking to ensure that the port is ready). Also within the same loop, the serial communications port is monitored; when a character is received, it is displayed on the screen. <ESC> from the keyboard causes a return to "command Mode".
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.