PDA

View Full Version : Can not communicate with a device via the example "Terminal"



leisha
23rd March 2015, 00:14
I try to communicate a connecting device via a converter, RS232 to USB with a FTDI chip with QT example "Terminal." After "configure" and "connect", I type some command on the console to send to device. However, nothing new is updated on the console. I even modify the code as

serial->write("*IDN?\n"); // Force Every keyboard event to trigger the write command with char*

in the method "WriteData" within MainWindow.cpp. Still, nothing is shown.

The device has good communication with win XP under BCB control. The OS currently used now is Win 7 or Win 8. But it seems that the command can not be sent to or received from device.

I even change the baudrate setting to 19200 in device, however, the baudrate that detected by Terminal is 9600.

Could anyone help me to figure out what the problem is?

Lesiok
23rd March 2015, 07:08
First of all : what is a result from open port ?

leisha
23rd March 2015, 11:43
Hi Lesiok,
Thank you for replying this newbie's problem. For this command, this device will reply its name, producer and the version of its firmware.

I am so sorry for my stupidness. This afternoon I found the joint of converter was dropped, this is the main reason I can not communicate with device. Moreover, I just don't know how to change title as solved problem so that keeping the question on fly. By the way, since the command recognized by the device is not BYTE type, I still need to change the data type for sending command, such as my modification. The communication works well now.

I am so sorry...