Hi,

On Tue, Nov 24, 2009 at 03:46:22PM +0100, Wolfgang Grandegger wrote:
> Hi Fu,
> ....I will do some testing when time permits.
> 

FYI. I just put updated versions of canutils and libsocketcan-nl onto
the FTP server. Fixed some brownpaperbag bugs and added some functions.
Now canconfig provides all functionalities which the iproute2 tool also
does. canconfig now looks like this:

r...@target:~ canconfig can0
can0 bitrate: 250000, sample point: 0.833
can0 state: ACTIVE
can0 restart_ms: 1000
can0 clock freq: 33000000
can0 mode: loopback[OFF], listen-only[OFF], tripple-sampling[OFF]

Just take a look into help if you want to know more.

The library API has also seen updates:

int scan_do_restart(const char *name);

int scan_set_restart_ms(const char *name, __u32 restart_ms);
int scan_set_bittiming(const char *name, struct can_bittiming *bt);
int scan_set_ctrlmode(const char *name, struct can_ctrlmode *cm);
int scan_set_bitrate(const char *name, __u32 bitrate, __u32 sample_point);

int scan_get_restart_ms(const char *name, __u32 *restart_ms);
int scan_get_bittiming(const char *name, struct can_bittiming *bt);
int scan_get_ctrlmode(const char *name, struct can_ctrlmode *cm);
int scan_get_state(const char *name, int *state);
int scan_get_clock(const char *name, struct can_clock *clock);

Well, I still don't have any documentation.....ooOO(boring) ;-). Usage
should be straight forward. Patches are like ever highly welcome.
If you do tests. please be sure to take the current versions or just
clone from the git repo.

Cheers
Luotao Fu
-- 
Pengutronix e.K.                           | Dipl.-Ing. Luotao Fu        |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Attachment: signature.asc
Description: Digital signature

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

Reply via email to