Commit Graph

46 Commits

Author SHA1 Message Date
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
Anton Gerasimov b5ac81eeb6 Fix receiving multiframe packages 2017-12-22 16:53:36 +01:00
Anton Gerasimov ccb1101e8d Fix sending 2017-12-21 17:19:52 +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
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 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 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 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 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
Christopher Peplin 03c3696d34 Return completion status when receiving CAN frames. 2013-12-31 16:29:07 -05:00
Christopher Peplin 6bbc83bd1d Move some functions to main isotp.h file to simplify includes for now. 2013-12-31 16:12:36 -05:00
Christopher Peplin 10a35b0a7c Draft reworking of API. 2013-12-31 12:59:04 -05:00
Christopher Peplin 90209462aa Update deps. 2013-12-31 11:40:46 -05:00
Christopher Peplin bc7c0205d8 Don't use debug function directly in library. 2013-12-30 18:30:13 -05:00
Christopher Peplin f13267feab Use updated API for canutil library. 2013-12-29 15:29:08 -05:00
Christopher Peplin fb3c14776f Draft work using more generic bitfield functions. 2013-12-28 15:42:29 -05:00
Christopher Peplin fd2f9c3b0d Encapsulate arb_id, payload and size into a data type. 2013-12-28 14:15:24 -05:00
Christopher Peplin 45530604e0 Log a message when rejecting a send. 2013-12-28 13:56:36 -05:00
Christopher Peplin b44a989049 Confirm CAN messages are built correctly. 2013-12-28 10:58:02 -05:00
Christopher Peplin 37a7e905f6 Test basic single frame sending. 2013-12-27 23:06:23 -05:00
Christopher Peplin 9fadf39098 Test basic rx of a single frame message. 2013-12-27 21:46:15 -05:00
Christopher Peplin 451ee4faa4 Draft progress implementing single frame rx. 2013-12-27 19:04:27 -05:00
Christopher Peplin 34a7c0ca08 Add skeleton tests for receiving and sending ISO-TP messages. 2013-12-27 18:28:53 -05:00
Christopher Peplin e6d46d95d3 Sketch out the API and add some notes. 2013-12-27 14:02:14 -05:00