CP2201-EK
8
Rev. 0.1
6.4. Monitoring Real Time Sensor Data Using the Telnet Interface
The temperature and light sensor data can be monitored using the command line Telnet interface. The Telnet
interface is very similar to UART, except bytes are sent over a TCP connection instead of an RS-232 cable.
1. If Hyperterminal is not the default telnet client on your PC, then start it using
START-> All Programs ->
Accessories -> Communication -> HyperTerminal
. Otherwise, skip to step 4.
2. The first time you run the program, you will be prompted to enter your area code. Enter the required infor-
mation and press
Next
or
Cancel
to continue.
3. When the ‘Connection Description’ Dialog appears, press
Cancel
, then exit from the application. Hyperter-
minal is now configured on your PC.
4. From Netfinder, select an embedded system and press the
Hyperterminal
quick launch button as shown
in Figure 12. This button initiates a Telnet connection with the selected CP2201EB using the default Telnet
client on your PC.
Figure 12. Initiating a Telnet Connection From Netfinder
Figure 13 shows a screenshot of the Telnet connection to the CP2201EB. Pressing the
S
key starts printing and
updating samples on the screen. Pressing the
P
key pauses the updates. A key difference between this method of
accessing sensor data and the web browser is that the MCU initiates updates of the information on the screen. In a
web browser, the browser must request data from the MCU.
Note:
The Telnet demo has been configured with a
fast update rate. We recommend closing the Telnet connection when finished viewing data to free system
resources for other parts of the demo.
Figure 13. Telnet Interface