pako Posted January 22, 2017 Posted January 22, 2017 I need to use non-standard baud rate (125000) on the serial port. Communication works very reliably, but dmesg says: "Python sets custom speed on ttyS1. This is deprecated." What should my attitude towards it? Can I ignore it? I read, that it is necessary to make some changes in the "asm/termios.h". It is necessary ? Could it be a normal part of the kernel? Moreover - I do not know how to do it. Thanks.
Ford Prefect Posted January 23, 2017 Posted January 23, 2017 Hi For hard ware reasons I'm not sure at all that this is possible. On the other hand ,TTY being an asynchronous, mode 115200 should work. What is that device who needs 125000 ?
pako Posted January 23, 2017 Author Posted January 23, 2017 Thank you for answer. For hard ware reasons I'm not sure at all that this is possible. I maybe wrong to express (my English is very poor, I use Google translator for support). It may not be a problem HW because it works very well. I am only concerned about the message, that it is deprecated. Maybe it can happen, that (after some upgrades, for example) it stops working ? That is why I am asking.What is that device who needs 125000 ? It is ATtiny2313. The clock is calibrated 8 MHz oscillator. If I used baud rate 115200, so the error (deviation from the nominal rate) is 8.5%. It seems to me too much.
Ford Prefect Posted January 27, 2017 Posted January 27, 2017 Hi My English is not good either because I missed that it worked on your first message. I wouldn't bother too much about the message. May be a clever driver when asked an impossible thing does the closest match it can do.
pako Posted January 27, 2017 Author Posted January 27, 2017 I wouldn't bother too much about the message. I thank you for your soothing words. I guess it's not so hot. See this communication older than 10 years: https://lists.gt.net/linux/kernel/679919 However - I think it would not be so. For us it's called skeleton in the closet.
Recommended Posts