I have a question for you about the serial port communication with Mathematica.
I can establish the communication with a serial port device, in fact, i can receive data from the device, using DeviceRead.
But i can’t send any data to the device…
For example, with Putty, i write SHOW_DATE and click enter on the keyboard, and the device gives me his answer.
If i execute this command with Mathematica, the device doesn’t answer:
DeviceWrite[dev,“SHOW_DATE”]
I have also tried:
DeviceWrite[dev,ToCharacterCode[“SHOW_DATE”]]
Can someone help me? How i can send the “text” in the right way, like Putty?
Please show more code. How are you opening the port? How are you reading the answer back after the Wrtie? Is there a delay from the device so you might have to pause to read it, etc. The problem could be at any part in the process and not necessarily with the DeviceWrite.