I am using open command to open a serial port in order to write and read from a device.
The only way communication can be initialized is when I open terminal application, connect to the device and then disconnect.
Otherwise my code hangs on trying to read the answer since the device wouldn't reply (after sending a command).
It looks like that the command couldn't get to the device.
this is the open command I am using