Commit Graph

71 Commits

Author SHA1 Message Date
Anton Gerasimov c2ef71266e Update bitfield-c 2019-01-11 16:48:55 +01:00
Anton Gerasimov 6de1a2c937 Fix warnings 2019-01-11 16:14:25 +01:00
Anton Gerasimov 9b19c8e1e2 Fix deprecated GNU designators 2019-01-11 15:31:30 +01:00
Anton Gerasimov a9cbb0dfd3 Take frame gap from FC frame into account 2018-09-12 15:03:45 +02:00
Anton Gerasimov 9c812d5d7b Fix width of temporary variables 2018-09-11 19:25:07 +02:00
Anton Gerasimov ae58e80c37 Increase supported message size 2018-09-11 17:17:48 +02:00
Anton Gerasimov 7835e17d98 Specify ISOTP message gap 2018-09-11 17:17:27 +02:00
Anton Gerasimov 94339fc887 Specify RX and TX IDs directly as it is done in RIOT 2018-09-03 18:45:01 +02:00
OYTIS 4c5904bff3
Merge pull request #7 from advancedtelematic/bugfix/multirecv
Fix receiving multiframe packages
2017-12-22 16:57:21 +01:00
Anton Gerasimov b5ac81eeb6 Fix receiving multiframe packages 2017-12-22 16:53:36 +01:00
OYTIS 0bb1ebd64b
Merge pull request #6 from advancedtelematic/bugfix/gitmodules
Fix typo in .gitmodules
2017-12-22 10:27:58 +01:00
Anton Gerasimov 0df6a39751 Fix typo in .gitmodules 2017-12-22 10:25:52 +01:00
OYTIS 7492b7d195
Merge pull request #5 from advancedtelematic/bugfix/bitfield
Pull bitfield-c from fork
2017-12-21 17:51:53 +01:00
Anton Gerasimov fca4c7142c Pull bitfield-c from fork 2017-12-21 17:48:09 +01:00
OYTIS dae9b1329e
Merge pull request #4 from advancedtelematic/bugfix/send
Fix sending
2017-12-21 17:25:02 +01:00
Anton Gerasimov ccb1101e8d Fix sending 2017-12-21 17:19:52 +01:00
OYTIS 135a1fcd8c
Merge pull request #3 from advancedtelematic/bugfix/multiframe
Add multiframe support
2017-12-20 19:33:42 +01:00
Anton Gerasimov 1a28f2f006 Add multiframe support 2017-12-20 19:29:45 +01:00
OYTIS 2c99a9853d
Merge pull request #2 from advancedtelematic/bugfix/C89
Minor fixes to make compiler happy
2017-12-18 10:50:41 +01:00
Anton Gerasimov 72b9b05d82 Minor fixes to make compiler happy 2017-12-18 10:24:45 +01:00
OYTIS c4f1fea1c5
Merge pull request #1 from OYTIS/nomalloc
Hide allocations behind an interface
2017-12-12 18:54:06 +01:00
Anton Gerasimov 1cae4bf63d Hide allocations behind an interface
Should make porting to bare-metal environments easier.

Signed-off-by: Anton Gerasimov <anton@advancedtelematic.com>
2017-12-08 14:44:45 +01:00
Zac Nelson ee24440b7c reduce max isotp message size. see OpenXC vi-firmware issue #375 https://github.com/openxc/vi-firmware/issues/375. (#5) 2016-10-05 10:17:23 -07:00
Zac Nelson 4e7375321a Add support for multi-frame responses (#4)
* first test with multi-frame. storing data in handler. still need to free memory since using malloc.

* hardcode the IsoTpMessage payload size. copy the full multi-frame response into a complete isotpMessage once all frames have been received. otherwise, the returned isotpMessage is not complete.

* remove unnecessary debug statements.

* do not receive multi-frame message if it is larger than the payload buffer size.

* update changelog with multi-frame support

* fix the changelog version for proper semantic versioning. oops.

* move pointer intialization for testing purposes.

* add tests for multi-frame.

* try latest version of check

* fix syntax for version install.

* fix tests. no longer check for malloc pointer (not supported in Travis version of check.h - just test that flow control message has not been sent.

* add IsoTpMessage field for multi_frame. Need this upstream for doing timeout updates.

* add test multi_frame field.
2016-09-14 09:52:13 -07:00
Christopher Peplin 50722a2a61 Add missing libraries to Makefile. 2016-07-07 09:37:16 -04:00
Christopher Peplin 57870860bb Remove old hipchat token from Travis CI config. 2014-07-19 14:37:36 -04:00
Christopher Peplin b2745c6092 Update string formatting for new arb ID size. 2014-02-27 16:05:36 -05:00
Christopher Peplin a8f4bf42ee Increase size of arb ID to uint32_t to fit extended IDs. 2014-02-27 15:53:19 -05:00
Christopher Peplin c01a88ba1e Add an option to control CAN frame padding (on by default).
Fixed #1.
2014-02-14 17:58:22 -05:00
Christopher Peplin 43fd60983e Use '\0' for NULL in c strings. 2014-01-07 00:16:57 -05:00
Christopher Peplin 08ac01d130 Enable warnings when compiling and fix a few. 2014-01-07 00:08:39 -05:00
Christopher Peplin 513d8c8d70 Use latest bitfield-c. 2014-01-06 14:05:12 -05:00
Christopher Peplin 45a922c926 Silence a noisy log message. 2014-01-05 18:56:05 -05:00
Christopher Peplin ef06cb3a05 Move a few things about to make compiling with other projects possible. 2014-01-05 15:43:43 -05:00
Christopher Peplin 8922abb7ff Fix typos. 2014-01-03 16:38:22 -05:00
Christopher Peplin 7c24f87bc7 Add Dave Boll to author's list. Thanks! 2014-01-03 16:10:34 -05:00
Christopher Peplin 980d26f9df Document all functions in header files. 2014-01-03 14:29:55 -05:00
Christopher Peplin a5e9107147 Split up functions in send/receive files for clarity. 2014-01-03 13:44:39 -05:00
Christopher Peplin 330358c978 Split up functions to rx CAN messages for rx and tx of ISO-TP. 2014-01-03 13:40:02 -05:00
Christopher Peplin 99dd20fc3d Test rx an empty CAN messages. 2014-01-03 13:21:18 -05:00
Christopher Peplin 9c92fe46b5 Update docs in README. 2014-01-03 13:18:06 -05:00
Christopher Peplin cf5710badd Document how to run coverage. 2014-01-03 12:45:46 -05:00
Christopher Peplin ca2035c4a4 Compile with coverage calculation, put objects in a subdir. 2014-01-03 12:37:53 -05:00
Christopher Peplin 64af0554cb Print full payload by giving it enough buffer. DOH. 2014-01-03 12:18:33 -05:00
Christopher Peplin fe5f39179f Attempt to print entire payload and fail. 2014-01-02 18:31:52 -05:00
Christopher Peplin 3b25a0491c Allocate ISO-TP message buffer on the stack. 2014-01-02 17:14:56 -05:00
Christopher Peplin e3637d97ec Only mark handle as completed when fully received. 2014-01-02 15:28:52 -05:00
Christopher Peplin fe20a273bb Avoid hitting a NULL pointer when using callbacks. 2014-01-02 12:10:14 -05:00
Christopher Peplin 482c7eafcb Return completed rx messages instead of relying on callbacks. 2014-01-01 16:10:57 -05:00
Christopher Peplin 8702b34a8f Attempt to print full payload and FAIL! 2013-12-31 16:42:18 -05:00