Posts

Хамад бин Халифа Аль Тани

Image
Хамад бин Халифа Аль Тани حمد بن خليفه آل ثاني 3-й Эмир Катара 27 июня 1995 года  — 25 июня 2013 года Предшественник Халифа бин Хамад Аль Тани Преемник Тамим бин Хамад Аль Тани 2-й Премьер-министр Катара 27 июня 1995 года  — 29 октября 1996 года Предшественник Халифа бин Хамад Аль Тани Преемник Абдулла бин Халифа аль Тани Вероисповедание ислам Рождение 1 января 1952 ( 1952-01-01 ) (67 лет) Доха Род Аль Тани Отец Халифа бин Хамад Аль Тани Супруга Mariam bint Muhammad, Моза бинт Насер аль Миснед, Noora bint Khalid Дети сыновья: Тамим, Джасим дочери: Аль-Маясса (всего - 25 детей от трёх жён) Образование Королевская военная академия в Сандхёрсте Награды Военная служба Принадлежность Катар   Катар Звание генерал-майор Командовал Министр обороны Катара с 1977 г.  Хамад бин Халифа Аль Тани

Linux device enumeration

Image
3 1 In our linux box we have USB -> serial device which was always identified as /dev/ttyACM0 . So I've written a application and until yesterday, everything worked fine. But suddenly (yeah, during the remote presentation ...) the device has stopped to work. After a quick research I've found the the connection has changed to /dev/ttyACM1 . it was a little untimely, but now I have a problem - how to identify my device in some unambiguously way? Like, for example the storage drive could be initialized using UUID although the /dev/sd** has changed. Is the there some way to do that for serial device? Now I use a stupid workaround: for(int i = 0; i < 10; i ++) { m_port = std::string("/dev/ttyACM") + (char)('0' + i); m_fd = open(m_port.c_str(), O_RDWR | O_NOCTTY | O_NDELAY)