Jump to content

Custom speed on ttyS1


pako

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines