I am using NodeJs on Colibri i.MX6 with a Colibri Evaluation Board. I am connecting the /dev/ttymxc1 without any problem and interconnecting between board and the device that I am using. But even if no device attach to the ttymxc1, it says “its connected” too. So I cannot understand if the device is connected or not. But when I connect the device with usb, I can get disconnected event.
So how can I understand the device is disconnected when I connected it with /dev/ttymxc1 ?