Am 06.01.2011 10:16, schrieb Oliver Hartkopp:
> On 05.01.2011 11:35, Yegor Yefremov wrote:
>> Hello,
>>
>> how the serial buadrate should be specified for slcan usage? All slcan 
>> utilities just open serial connection and make read/write operations. For 
>> low speed devices it is not a problem to specify common baudrates like 
>> 115200, 230400 b/s and so on via stty. But try to do it for 3Mbit/s (on 
>> buildroot's busybox stty I got only 115200). So suggest to make extra 
>> parameter for baudrate specification. 
>>
>> Unfortunately termios2 constructs are still not available in user space, so 
>> we'll have to make a translation table from int baudrate to Bfoo. 
>>
>> What do you think about it? Has someone started to implement such an option?
> Hi Yegor,
>
> i usually use slcan USB adapters, and they 'just work'.
>
> I think the baudrate setting should be better separated into a different tool
> - like stty or something new if stty does not fit. Is there any chance to
> modify stty to support the 3MBit/s settings?
>
> If so stty should be modified and updated in your busybox.
>
> As there is already a tool that should do the job, i would definitely try to
> avoid these settings in slcan_attach ...

Hi Oliver,

I've just checked the issue. The "normal" coreutils stty supports such 
baudrates, but not busybox one: 
http://lists.busybox.net/pipermail/busybox/2008-February/064253.html

So for buildroot one will have to choose normal coreutils and not busybox ones 
:-(

I also had problems with iptables version from busybox, but I haven't look at 
the code.

Best regards,
Yegor

_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to