]> rtime.felk.cvut.cz Git - linux-lin.git/log
linux-lin.git
12 years agosllin: rx_timer is also used when waiting for received characters while sending Heade...
Rostislav Lisovy [Fri, 16 Dec 2011 09:46:32 +0000 (10:46 +0100)]
sllin: rx_timer is also used when waiting for received characters while sending Header -- this prevents from blocking when faulty or no LIN-voltage-level-converter is used.

12 years agosllin: Updating of Error counters belonging to netdevice when an error occurs.
Rostislav Lisovy [Wed, 14 Dec 2011 14:52:42 +0000 (15:52 +0100)]
sllin: Updating of Error counters belonging to netdevice when an error occurs.

12 years agosllin: All comments are C89 compatible.
Rostislav Lisovy [Wed, 14 Dec 2011 14:39:08 +0000 (15:39 +0100)]
sllin: All comments are C89 compatible.

12 years agosllin: Documentation.
Rostislav Lisovy [Wed, 14 Dec 2011 13:55:39 +0000 (14:55 +0100)]
sllin: Documentation.

12 years agosllin: Removed unnecessary white-spaces.
Rostislav Lisovy [Wed, 14 Dec 2011 13:17:16 +0000 (14:17 +0100)]
sllin: Removed unnecessary white-spaces.

12 years agosllin: Added patches enabling some programs from can-utils to work with sllin.
Rostislav Lisovy [Wed, 14 Dec 2011 12:50:01 +0000 (13:50 +0100)]
sllin: Added patches enabling some programs from can-utils to work with sllin.

12 years agosllin: Changed prefix for LIN flags/masks from SLLIN_ to LIN_.
Rostislav Lisovy [Wed, 14 Dec 2011 12:41:33 +0000 (13:41 +0100)]
sllin: Changed prefix for LIN flags/masks from SLLIN_ to LIN_.

12 years agosllin: General purpose LIN-related flags and masks moved into separate header file.
Rostislav Lisovy [Wed, 14 Dec 2011 12:33:20 +0000 (13:33 +0100)]
sllin: General purpose LIN-related flags and masks moved into separate header file.

12 years agosllin: Added comments.
Rostislav Lisovy [Wed, 14 Dec 2011 12:26:59 +0000 (13:26 +0100)]
sllin: Added comments.

12 years agosllin: "printk(KERN_INFO...)" changed to pr_debug() to easier enabling/disabling...
Rostislav Lisovy [Wed, 14 Dec 2011 10:56:33 +0000 (11:56 +0100)]
sllin: "printk(KERN_INFO...)" changed to pr_debug() to easier enabling/disabling of printing of debugging information.

12 years agosllin: Checking of checksum on received LIN frames.
Rostislav Lisovy [Mon, 12 Dec 2011 17:35:03 +0000 (18:35 +0100)]
sllin: Checking of checksum on received LIN frames.

12 years agosllin: Reorganization and optimization of State automaton.
Rostislav Lisovy [Mon, 12 Dec 2011 15:24:36 +0000 (16:24 +0100)]
sllin: Reorganization and optimization of State automaton.

sllin_configure_frame_cache moved out of Switch statement into sll_xmit
(access to sl->linfr_cache is now done with spinlocks).

12 years agosllin: Time to sleep during sending Break is computed depending on baud rate.
Rostislav Lisovy [Mon, 12 Dec 2011 15:21:42 +0000 (16:21 +0100)]
sllin: Time to sleep during sending Break is computed depending on baud rate.

12 years agosllin: Reception an parsing of CAN frames enabled immediately after LIN header was...
Rostislav Lisovy [Mon, 12 Dec 2011 14:00:55 +0000 (15:00 +0100)]
sllin: Reception an parsing of CAN frames enabled immediately after LIN header was sent.

This makes possible to send LIN response received as CAN
frame immediately after LIN header transmission.

12 years agosllin: Errors are reported as CAN frames with particular SLLIN_ERR_ flags set.
Rostislav Lisovy [Fri, 9 Dec 2011 16:22:50 +0000 (17:22 +0100)]
sllin: Errors are reported as CAN frames with particular SLLIN_ERR_ flags set.

12 years agosllin: Removed unused code.
Rostislav Lisovy [Fri, 9 Dec 2011 15:06:43 +0000 (16:06 +0100)]
sllin: Removed unused code.

12 years agosllin: It is possible to send "LIN response" from linfr_cache when configured.
Rostislav Lisovy [Fri, 9 Dec 2011 14:35:48 +0000 (15:35 +0100)]
sllin: It is possible to send "LIN response" from linfr_cache when configured.

12 years agosllin: Added LIN frame cache and its configuration with CAN EFF frames.
Rostislav Lisovy [Fri, 9 Dec 2011 12:58:30 +0000 (13:58 +0100)]
sllin: Added LIN frame cache and its configuration with CAN EFF frames.

12 years agosllin: Network statistics for received CAN frames.
Rostislav Lisovy [Wed, 7 Dec 2011 17:26:12 +0000 (18:26 +0100)]
sllin: Network statistics for received CAN frames.

12 years agosllin: Sending CAN frame with LIN data payload received from LIN slave response from...
Rostislav Lisovy [Wed, 7 Dec 2011 17:19:41 +0000 (18:19 +0100)]
sllin: Sending CAN frame with LIN data payload received from LIN slave response from the LIN bus.

12 years agosllin: Added timer handling timeout when receiving LIN response.
Rostislav Lisovy [Sat, 3 Dec 2011 19:43:56 +0000 (20:43 +0100)]
sllin: Added timer handling timeout when receiving LIN response.

12 years agolin_master: Checking if character read is really a break.
Rostislav Lisovy [Fri, 2 Dec 2011 13:46:05 +0000 (14:46 +0100)]
lin_master: Checking if character read is really a break.

12 years agosllin: Improved sending of a "LIN response" sent by master following LIN header.
Rostislav Lisovy [Fri, 2 Dec 2011 13:42:28 +0000 (14:42 +0100)]
sllin: Improved sending of a "LIN response" sent by master following LIN header.

12 years agosllin: LIN frame is sent (to TTY) after receiving CAN frame (from network subsystem).
Rostislav Lisovy [Wed, 30 Nov 2011 16:09:00 +0000 (17:09 +0100)]
sllin: LIN frame is sent (to TTY) after receiving CAN frame (from network subsystem).

RTR CAN frame received     -> LIN header sent
NON-RTR CAN frame received -> LIN header + LIN response sent

12 years agoBreak correctly generated either with timer or with baud-rate change.
Rostislav Lisovy [Mon, 28 Nov 2011 16:29:39 +0000 (17:29 +0100)]
Break correctly generated either with timer or with baud-rate change.

One way how to generate Break is by manually controlling break signal
while sleeping with timer.
Another way is to slower baud-rate of an UART and send 0x00.

12 years agosllin: Generating Break signal done with our own function.
Rostislav Lisovy [Fri, 25 Nov 2011 16:09:10 +0000 (17:09 +0100)]
sllin: Generating Break signal done with our own function.

12 years agoSllin: Temporarily commented out some error checking for testing purposes.
Rostislav Lisovy [Fri, 25 Nov 2011 16:02:32 +0000 (17:02 +0100)]
Sllin: Temporarily commented out some error checking for testing purposes.

12 years agosllin: Commented out unused code.
Rostislav Lisovy [Fri, 25 Nov 2011 11:01:39 +0000 (12:01 +0100)]
sllin: Commented out unused code.

12 years agoMerge branch 'master' of ssh://rtime.felk.cvut.cz/lisovros/pcan_lin
Rostislav Lisovy [Fri, 25 Nov 2011 10:56:01 +0000 (11:56 +0100)]
Merge branch 'master' of ssh://rtime.felk.cvut.cz/lisovros/pcan_lin

12 years agoKernel LIN code uses same baudrate setup as user space now.
Pavel Pisa [Fri, 25 Nov 2011 10:54:48 +0000 (11:54 +0100)]
Kernel LIN code uses same baudrate setup as user space now.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoMerge branch 'master' of ssh://rtime.felk.cvut.cz/lisovros/pcan_lin
Rostislav Lisovy [Fri, 25 Nov 2011 09:36:26 +0000 (10:36 +0100)]
Merge branch 'master' of ssh://rtime.felk.cvut.cz/lisovros/pcan_lin

12 years agoUpdate response checksum calculation for kernel code too.
Pavel Pisa [Fri, 25 Nov 2011 01:58:41 +0000 (02:58 +0100)]
Update response checksum calculation for kernel code too.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoUserspace LIN is compiled with USE_TERMIOS2 by default now.
Pavel Pisa [Fri, 25 Nov 2011 01:41:27 +0000 (02:41 +0100)]
Userspace LIN is compiled with USE_TERMIOS2 by default now.

If compiled with USE_TERMIOS2 then new kernel methods
is used to set generic baudrate.

The baudrate values are specified by c_ospeed
and c_ispeed fields of struct termios2 and new
IOCTL numbers TCSETS2 and TCGETS2 are used
for terminal parameters setting and reading.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoUserspace LIN master: Provide state encapsulation to test kernel code.
Pavel Pisa [Fri, 25 Nov 2011 00:39:25 +0000 (01:39 +0100)]
Userspace LIN master: Provide state encapsulation to test kernel code.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agosllin: Removed unused 'leased' field.
Rostislav Lisovy [Thu, 24 Nov 2011 15:44:46 +0000 (16:44 +0100)]
sllin: Removed unused 'leased' field.

12 years agosllin: Added debugging prints. Little bugfix.
Rostislav Lisovy [Thu, 24 Nov 2011 15:17:55 +0000 (16:17 +0100)]
sllin: Added debugging prints. Little bugfix.

12 years agoBasic argument parsing made by getopt_long.
Rostislav Lisovy [Thu, 24 Nov 2011 14:50:28 +0000 (15:50 +0100)]
Basic argument parsing made by getopt_long.

12 years agoSetting of uart baudrate done in separate function.
Rostislav Lisovy [Thu, 24 Nov 2011 13:42:19 +0000 (14:42 +0100)]
Setting of uart baudrate done in separate function.

12 years agoSetting UART speed to custom value for sending break.
Rostislav Lisovy [Wed, 23 Nov 2011 17:59:26 +0000 (18:59 +0100)]
Setting UART speed to custom value for sending break.

Used with 19200 baud rate for data TX, break generated by
sending 0x00 with 12800 baud rate.

PCAN LIN converter configured as a slave does respond.

12 years agoMerge branch 'master' of ssh://rtime.felk.cvut.cz/lisovros/pcan_lin
Pavel Pisa [Tue, 22 Nov 2011 21:17:49 +0000 (22:17 +0100)]
Merge branch 'master' of ssh://rtime.felk.cvut.cz/lisovros/pcan_lin

12 years agoBasic functions to synchronize Tx with LIN state automata implemented.
Pavel Pisa [Tue, 22 Nov 2011 21:17:01 +0000 (22:17 +0100)]
Basic functions to synchronize Tx with LIN state automata implemented.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoAdd pty testing program
Michal Sojka [Tue, 22 Nov 2011 00:21:42 +0000 (01:21 +0100)]
Add pty testing program

This program allows testing serial line disciplines on computers without
any serial port (like my laptop outside of docking station).

12 years agoTool to compute LIN ID parity table.
Pavel Pisa [Mon, 21 Nov 2011 16:43:05 +0000 (17:43 +0100)]
Tool to compute LIN ID parity table.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoAdded minimal skeleton to use kernel worker thread.
Pavel Pisa [Mon, 21 Nov 2011 12:44:41 +0000 (13:44 +0100)]
Added minimal skeleton to use kernel worker thread.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
12 years agoMerge remote branch 'pisa/master'
Rostislav Lisovy [Mon, 21 Nov 2011 09:58:27 +0000 (10:58 +0100)]
Merge remote branch 'pisa/master'

12 years agoAdded some debugging functions.
Rostislav Lisovy [Mon, 21 Nov 2011 09:36:35 +0000 (10:36 +0100)]
Added some debugging functions.

12 years agoAdded basic speed change.
Rostislav Lisovy [Wed, 16 Nov 2011 16:03:54 +0000 (17:03 +0100)]
Added basic speed change.

12 years agoAdded Makefile.
Rostislav Lisovy [Wed, 16 Nov 2011 14:21:56 +0000 (15:21 +0100)]
Added Makefile.

12 years agoVariables called slcan (or similar) renamed to sllin.
Rostislav Lisovy [Wed, 16 Nov 2011 14:21:45 +0000 (15:21 +0100)]
Variables called slcan (or similar) renamed to sllin.

12 years agoInitial commit. Slcan used as starting point for Sllin.
Rostislav Lisovy [Wed, 16 Nov 2011 14:19:53 +0000 (15:19 +0100)]
Initial commit. Slcan used as starting point for Sllin.

12 years agoLIN master simulated with an UART.
Rostislav Lisovy [Wed, 9 Nov 2011 17:12:26 +0000 (18:12 +0100)]
LIN master simulated with an UART.

Slaves (PCAN-LIN and PCAN-USB Pro) are responding only when this master works with B2400 speed.

12 years agoCorrected wrong bit-order in received header.
Rostislav Lisovy [Wed, 2 Nov 2011 15:22:35 +0000 (16:22 +0100)]
Corrected wrong bit-order in received header.

12 years agoInitial commit of UART-LIN slave. Receiving Break does not work.
Rostislav Lisovy [Mon, 31 Oct 2011 17:06:02 +0000 (18:06 +0100)]
Initial commit of UART-LIN slave. Receiving Break does not work.

12 years agoInitial commit; Basic skeleton.
Rostislav Lisovy [Mon, 24 Oct 2011 16:35:19 +0000 (18:35 +0200)]
Initial commit; Basic skeleton.