L
lrantisi
I use the hyperterminal to communicate and send commands to serial
port COM1.
On the hyperterminal window, I used to type such a command:
AT+ZV SPPCONNECT.......
This command is sent to the device connected to the COM1 port.
Now I want to cancel the hyperterminal, and sue a Java program.
I used the javax.comm library to build a java application that
communicates with the COM1 port.
Inside that program, I connected to the COM1 port. How do I send that
text command from inside the java program to the COM1 port. There is a
method called (send) inside the (serialport) class, do I just say:
serialport.send "AT+ZV SPPCONNECT.......".
I mean, is sending text commands through the hyperterminal simply
equivalent to sending those text commands to the COM1 port using the
java application described above.
Now: Is sending the text command to the COM1
port COM1.
On the hyperterminal window, I used to type such a command:
AT+ZV SPPCONNECT.......
This command is sent to the device connected to the COM1 port.
Now I want to cancel the hyperterminal, and sue a Java program.
I used the javax.comm library to build a java application that
communicates with the COM1 port.
Inside that program, I connected to the COM1 port. How do I send that
text command from inside the java program to the COM1 port. There is a
method called (send) inside the (serialport) class, do I just say:
serialport.send "AT+ZV SPPCONNECT.......".
I mean, is sending text commands through the hyperterminal simply
equivalent to sending those text commands to the COM1 port using the
java application described above.
Now: Is sending the text command to the COM1