apps/low-level-can-service.git
9 years agoMove JSON spec to a separate file to keep the length down.
Christopher Peplin [Tue, 7 Oct 2014 01:27:24 +0000 (21:27 -0400)]
Move JSON spec to a separate file to keep the length down.

9 years agoAdd a command to enable/disable pre-defined OBD-II requests.
Christopher Peplin [Tue, 30 Sep 2014 01:52:34 +0000 (21:52 -0400)]
Add a command to enable/disable pre-defined OBD-II requests.

See openxc/vi-firmware#303.

9 years agoStandardize names for payload format.
Christopher Peplin [Sun, 28 Sep 2014 00:40:22 +0000 (20:40 -0400)]
Standardize names for payload format.

9 years agoRemove unnecessary 'bus' field from message format command.
Christopher Peplin [Sun, 28 Sep 2014 00:17:48 +0000 (20:17 -0400)]
Remove unnecessary 'bus' field from message format command.

9 years agoReturn response to set message format command in original format.
Christopher Peplin [Sun, 28 Sep 2014 00:07:03 +0000 (20:07 -0400)]
Return response to set message format command in original format.

9 years agoAdd a command to change message format while running.
Christopher Peplin [Sat, 27 Sep 2014 23:56:21 +0000 (19:56 -0400)]
Add a command to change message format while running.

9 years agoUpdate compiled files.
Christopher Peplin [Sat, 27 Sep 2014 23:43:42 +0000 (19:43 -0400)]
Update compiled files.

9 years agoAdd a control command to control AF bypass status.
Christopher Peplin [Sat, 27 Sep 2014 22:41:24 +0000 (18:41 -0400)]
Add a control command to control AF bypass status.

See openxc/vi-firmware#301.

9 years agoAdd missing comma in example.
Christopher Peplin [Sun, 21 Sep 2014 21:20:50 +0000 (17:20 -0400)]
Add missing comma in example.

9 years agoSimplify passthrough command to just a boolean.
Christopher Peplin [Sun, 21 Sep 2014 02:56:37 +0000 (22:56 -0400)]
Simplify passthrough command to just a boolean.

9 years agoMerge remote-tracking branch 'origin/latest-nanopb' into passthrough-command
Christopher Peplin [Sun, 21 Sep 2014 01:58:35 +0000 (21:58 -0400)]
Merge remote-tracking branch 'origin/latest-nanopb' into passthrough-command

Conflicts:
gen/cpp/openxc.pb.c
gen/cpp/openxc.pb.h

9 years agoAdd passthrough command and refactor commands in binary format.
Christopher Peplin [Sun, 21 Sep 2014 01:47:09 +0000 (21:47 -0400)]
Add passthrough command and refactor commands in binary format.

The ControlCommand is now more like a VehicleMessage - it has a 'type'
and many optional fields pointing to the various types. If the type is
diagnostic, the client should look at the diagnostic_request field.

9 years agoRe-build with nanopb v0.3.1.
Christopher Peplin [Wed, 17 Sep 2014 03:03:32 +0000 (23:03 -0400)]
Re-build with nanopb v0.3.1.

9 years agoNote that 0x prefix on hex strings is optional.
Christopher Peplin [Fri, 5 Sep 2014 02:37:07 +0000 (22:37 -0400)]
Note that 0x prefix on hex strings is optional.

9 years agoMove action field to ControlCommand in binary format.
Christopher Peplin [Tue, 12 Aug 2014 03:36:39 +0000 (23:36 -0400)]
Move action field to ControlCommand in binary format.

9 years agoAdd a 'status' field to command responses.
Christopher Peplin [Mon, 11 Aug 2014 02:05:11 +0000 (22:05 -0400)]
Add a 'status' field to command responses.

9 years agoRemove 'update' feature of diag request commands.
Christopher Peplin [Mon, 11 Aug 2014 01:51:13 +0000 (21:51 -0400)]
Remove 'update' feature of diag request commands.

9 years agoRequire an 'action' in diagnostic requests.
Christopher Peplin [Tue, 5 Aug 2014 02:04:57 +0000 (22:04 -0400)]
Require an 'action' in diagnostic requests.

It wasn't very clean to try and infer a delete/create/update based on
the value of the frequency field - this will require a little more code,
but as they say in Python, explicit is better than implicit.

Fixed https://github.com/openxc/openxc-message-format/issues/12

9 years agoExplain when to use JSON vs. binary.
Christopher Peplin [Tue, 5 Aug 2014 01:41:35 +0000 (21:41 -0400)]
Explain when to use JSON vs. binary.

9 years agoExpand diagnostic mode field to a full byte's range.
Christopher Peplin [Tue, 5 Aug 2014 01:36:47 +0000 (21:36 -0400)]
Expand diagnostic mode field to a full byte's range.

Fixed #10.

10 years agoAdd 'extras' field to JSON messages for custom data.
Christopher Peplin [Wed, 25 Jun 2014 22:52:43 +0000 (18:52 -0400)]
Add 'extras' field to JSON messages for custom data.

10 years agoMake the protobuf format more clear in README.
Christopher Peplin [Wed, 25 Jun 2014 22:49:03 +0000 (18:49 -0400)]
Make the protobuf format more clear in README.

10 years agoMerge remote-tracking branch 'origin/master' into next
Christopher Peplin [Wed, 25 Jun 2014 22:47:21 +0000 (18:47 -0400)]
Merge remote-tracking branch 'origin/master' into next

10 years agoRemove factor and offset from diag requests - left up to clients.
Christopher Peplin [Thu, 12 Jun 2014 03:28:53 +0000 (23:28 -0400)]
Remove factor and offset from diag requests - left up to clients.

10 years agoFix typo in example for raw message format.
Christopher Peplin [Sun, 25 May 2014 01:30:12 +0000 (21:30 -0400)]
Fix typo in example for raw message format.

10 years agoBump to next dev release.
Christopher Peplin [Tue, 29 Apr 2014 04:04:31 +0000 (00:04 -0400)]
Bump to next dev release.

10 years agoBump to v0.3.
Christopher Peplin [Tue, 29 Apr 2014 04:03:10 +0000 (00:03 -0400)]
Bump to v0.3.

10 years agoAdd version to README.
Christopher Peplin [Tue, 29 Apr 2014 04:01:13 +0000 (00:01 -0400)]
Add version to README.

10 years agoMerge remote-tracking branch 'origin/master' into diagnostic
Christopher Peplin [Tue, 29 Apr 2014 03:03:44 +0000 (23:03 -0400)]
Merge remote-tracking branch 'origin/master' into diagnostic

10 years agoBump copyright date.
Christopher Peplin [Sun, 13 Apr 2014 22:36:55 +0000 (18:36 -0400)]
Bump copyright date.

10 years agoAdd a quick list of the output from a build with OBD-II enabled.
Christopher Peplin [Sun, 13 Apr 2014 22:36:34 +0000 (18:36 -0400)]
Add a quick list of the output from a build with OBD-II enabled.

10 years agoMerge pull request #9 from dret/master
Christopher Peplin [Wed, 9 Apr 2014 02:52:25 +0000 (22:52 -0400)]
Merge pull request #9 from dret/master

more gears

10 years agomore gears
Erik Wilde [Tue, 8 Apr 2014 22:19:45 +0000 (15:19 -0700)]
more gears

with consumer vehicles now routinely having 8-speed gearboxes, gear_lever_position should go at least up to eighth, and maybe to be on the safe side even up to tenth. transmission_gear_position already went up to eighth, but for consistency it now also goes all the way up to tenth.

10 years agoClarify that 'newline' in trace file may or may not have \r.
Christopher Peplin [Thu, 27 Mar 2014 15:52:14 +0000 (11:52 -0400)]
Clarify that 'newline' in trace file may or may not have \r.

10 years agoDocument delimiters for both formats.
Christopher Peplin [Thu, 27 Mar 2014 15:38:33 +0000 (11:38 -0400)]
Document delimiters for both formats.

10 years agoClarify how diagnostic requests are identified, updated and cancelled.
Christopher Peplin [Wed, 26 Mar 2014 17:57:36 +0000 (13:57 -0400)]
Clarify how diagnostic requests are identified, updated and cancelled.

10 years agoRefactor diagnostic fields for decoding payload.
Christopher Peplin [Wed, 26 Mar 2014 14:48:29 +0000 (10:48 -0400)]
Refactor diagnostic fields for decoding payload.

10 years agoRemove parse_payload from diagnostic messages, it's not needed.
Christopher Peplin [Wed, 26 Mar 2014 12:53:09 +0000 (08:53 -0400)]
Remove parse_payload from diagnostic messages, it's not needed.

10 years agoElaborate on 'name' field for diagnostic requests.
Christopher Peplin [Sun, 23 Mar 2014 20:26:33 +0000 (16:26 -0400)]
Elaborate on 'name' field for diagnostic requests.

10 years agoMake negative diagnostic response format clearer.
Christopher Peplin [Sun, 23 Mar 2014 20:05:53 +0000 (16:05 -0400)]
Make negative diagnostic response format clearer.

10 years agoAdd 'success' field to example diagnostic response.
Christopher Peplin [Sat, 22 Mar 2014 20:05:33 +0000 (16:05 -0400)]
Add 'success' field to example diagnostic response.

10 years agoDocument command queries and responses.
Christopher Peplin [Sat, 22 Mar 2014 18:27:33 +0000 (14:27 -0400)]
Document command queries and responses.

10 years agoRequire byte arrays in JSON hex strings to have 2 chars per byte.
Christopher Peplin [Thu, 20 Mar 2014 18:44:58 +0000 (14:44 -0400)]
Require byte arrays in JSON hex strings to have 2 chars per byte.

10 years agoAdd 'name' and 'multiple_responses' fields to diag requests.
Christopher Peplin [Sat, 15 Mar 2014 16:54:35 +0000 (12:54 -0400)]
Add 'name' and 'multiple_responses' fields to diag requests.

10 years agoAdd CommandResponse type to VehicleMessage (from VI to host).
Christopher Peplin [Thu, 6 Mar 2014 22:01:46 +0000 (17:01 -0500)]
Add CommandResponse type to VehicleMessage (from VI to host).

10 years agoCondense string/number/bool trio into a field.
Christopher Peplin [Tue, 4 Mar 2014 20:28:14 +0000 (15:28 -0500)]
Condense string/number/bool trio into a field.

10 years agoRemove duplicate generate files.
Christopher Peplin [Tue, 4 Mar 2014 19:47:23 +0000 (14:47 -0500)]
Remove duplicate generate files.

10 years agoMove ControlCommand inside VehicleMessage so it can be on same stream.
Christopher Peplin [Tue, 4 Mar 2014 18:35:02 +0000 (13:35 -0500)]
Move ControlCommand inside VehicleMessage so it can be on same stream.

10 years agoAdd a draft protobuf format for diagnostic requests.
Christopher Peplin [Mon, 3 Mar 2014 20:36:35 +0000 (15:36 -0500)]
Add a draft protobuf format for diagnostic requests.

10 years agoAdd details about updating diag requests.
Christopher Peplin [Fri, 28 Feb 2014 19:48:36 +0000 (14:48 -0500)]
Add details about updating diag requests.

10 years agoMove 'frequency' field inside 'request' object of diag command.
Christopher Peplin [Fri, 28 Feb 2014 19:47:09 +0000 (14:47 -0500)]
Move 'frequency' field inside 'request' object of diag command.

10 years agoAdd more optional fields to diag requests and responses.
Christopher Peplin [Fri, 28 Feb 2014 19:43:26 +0000 (14:43 -0500)]
Add more optional fields to diag requests and responses.

10 years agoAdd a value field to diagnostic responses for parsed payloads.
Christopher Peplin [Wed, 19 Feb 2014 21:05:59 +0000 (16:05 -0500)]
Add a value field to diagnostic responses for parsed payloads.

10 years agoStore raw CAN payload in bytes instead of uint64_t.
Christopher Peplin [Fri, 17 Jan 2014 21:38:23 +0000 (16:38 -0500)]
Store raw CAN payload in bytes instead of uint64_t.

10 years agoMerge branch 'master' into diagnostic
Christopher Peplin [Fri, 17 Jan 2014 20:05:27 +0000 (15:05 -0500)]
Merge branch 'master' into diagnostic

10 years agoIgnore dirty submodules (generated files in nanopb).
Christopher Peplin [Fri, 17 Jan 2014 20:05:13 +0000 (15:05 -0500)]
Ignore dirty submodules (generated files in nanopb).

10 years agoAdd Diagnostic type within VehicleMessage supertype.
Christopher Peplin [Fri, 17 Jan 2014 19:43:05 +0000 (14:43 -0500)]
Add Diagnostic type within VehicleMessage supertype.

10 years agoStore diagnostic response payload as a byte array in protobuf.
Christopher Peplin [Fri, 17 Jan 2014 19:31:39 +0000 (14:31 -0500)]
Store diagnostic response payload as a byte array in protobuf.

10 years agoAdd a protobuf type for diagnostic message responses.
Christopher Peplin [Fri, 17 Jan 2014 19:12:42 +0000 (14:12 -0500)]
Add a protobuf type for diagnostic message responses.

10 years agoUpdate nanopb to 0.2.5 and fix max string length options.
Christopher Peplin [Fri, 17 Jan 2014 19:02:38 +0000 (14:02 -0500)]
Update nanopb to 0.2.5 and fix max string length options.

10 years agoDraft an idea of what the diagnostic request/response format will be.
Christopher Peplin [Tue, 7 Jan 2014 20:01:34 +0000 (15:01 -0500)]
Draft an idea of what the diagnostic request/response format will be.

10 years agoMinimize the number of separate protobuf types.
Christopher Peplin [Thu, 24 Oct 2013 14:09:30 +0000 (10:09 -0400)]
Minimize the number of separate protobuf types.

10 years agoRevert "Switch back to many subtypes for binary messages."
Christopher Peplin [Thu, 24 Oct 2013 13:56:07 +0000 (09:56 -0400)]
Revert "Switch back to many subtypes for binary messages."

This reverts commit 3e954ea9c44bdd00b39d3f0d2cc43662e633c891.

10 years agoRevert "Restore accidentally deleted data field from raw message."
Christopher Peplin [Thu, 24 Oct 2013 13:56:02 +0000 (09:56 -0400)]
Revert "Restore accidentally deleted data field from raw message."

This reverts commit e4a78ec9935af3b19d314e88b0ed935789162ca8.

10 years agoRestore accidentally deleted data field from raw message.
Christopher Peplin [Wed, 23 Oct 2013 13:55:14 +0000 (09:55 -0400)]
Restore accidentally deleted data field from raw message.

10 years agoSwitch back to many subtypes for binary messages.
Christopher Peplin [Wed, 23 Oct 2013 13:02:33 +0000 (09:02 -0400)]
Switch back to many subtypes for binary messages.

Some protobuf libraries don't support checking if a field exists (they
always return a default value), so although this style has more code it
is easier to support.

10 years agoFix package name of generated protobuf objects.
Christopher Peplin [Wed, 9 Oct 2013 18:29:00 +0000 (14:29 -0400)]
Fix package name of generated protobuf objects.

10 years agoSwitch raw data field to uint64 to fit all values and update benchmark.
Christopher Peplin [Sat, 5 Oct 2013 20:25:51 +0000 (16:25 -0400)]
Switch raw data field to uint64 to fit all values and update benchmark.

10 years agoRemove timestamp from trace JSON before benchmarking - oops!
Christopher Peplin [Sat, 5 Oct 2013 20:17:43 +0000 (16:17 -0400)]
Remove timestamp from trace JSON before benchmarking - oops!

The size savings is now about 35%, not 55%.

10 years agoUpdate benchmark tool for latest protobuf format.
Christopher Peplin [Sat, 5 Oct 2013 20:08:56 +0000 (16:08 -0400)]
Update benchmark tool for latest protobuf format.

10 years agoMerge all sub-types into a single TranslatedMessage type.
Christopher Peplin [Fri, 4 Oct 2013 23:31:51 +0000 (19:31 -0400)]
Merge all sub-types into a single TranslatedMessage type.

10 years agoAdd generated protobuf implementations.
Christopher Peplin [Tue, 1 Oct 2013 20:56:35 +0000 (16:56 -0400)]
Add generated protobuf implementations.

10 years agoAdd a bus field to RawMessage and make data an 64-bit int.
Christopher Peplin [Tue, 1 Oct 2013 18:46:03 +0000 (14:46 -0400)]
Add a bus field to RawMessage and make data an 64-bit int.

10 years agoAdd an options file to enable static memory with nanopb.
Christopher Peplin [Tue, 1 Oct 2013 03:32:29 +0000 (23:32 -0400)]
Add an options file to enable static memory with nanopb.

10 years agoMove proto definition to top level.
Christopher Peplin [Tue, 1 Oct 2013 01:19:06 +0000 (21:19 -0400)]
Move proto definition to top level.

10 years agoUse a container type to be able to stream protobufs.
Christopher Peplin [Mon, 30 Sep 2013 20:07:27 +0000 (16:07 -0400)]
Use a container type to be able to stream protobufs.

10 years agoBenchmark how much overhead each encoding adds vs raw CAN.
Christopher Peplin [Thu, 22 Aug 2013 20:57:54 +0000 (16:57 -0400)]
Benchmark how much overhead each encoding adds vs raw CAN.

10 years agoBenchmark encoding translated messages as binary, too.
Christopher Peplin [Thu, 22 Aug 2013 14:57:48 +0000 (10:57 -0400)]
Benchmark encoding translated messages as binary, too.

Results for all of my trace files:

> ./compare_sizes.py ~/ownCloud/OpenXC\ Traces/peplin/**/*.json       1
For the 89 trace files given...
Total transferred raw JSON size is 13.3MB
Total transferred raw binary size is 2.1MB
Total transferred translated JSON size is 791.0MB
Total transferred translated binary size is 318.6MB
Total transferred JSON size is 804.3MB
Total transferred binary size is 320.6MB
Binary encoding is 84.328494% smaller than JSON for raw messages
Binary encoding is 59.727489% smaller than JSON for translated messages
Binary encoding is 60.133196% smaller than JSON overall

10 years agoAdd benchmarking tests for binary encoding (moved from cantranslator).
Christopher Peplin [Thu, 22 Aug 2013 14:35:35 +0000 (10:35 -0400)]
Add benchmarking tests for binary encoding (moved from cantranslator).

10 years agoDocument trace file format.
Christopher Peplin [Fri, 22 Nov 2013 15:20:17 +0000 (10:20 -0500)]
Document trace file format.

10 years agoAdd frequency to gear_lever_position
Christopher Peplin [Tue, 5 Nov 2013 19:04:24 +0000 (14:04 -0500)]
Add frequency to gear_lever_position

10 years agoMove frequencies here from the OpenXC site.
Christopher Peplin [Wed, 9 Oct 2013 16:51:35 +0000 (12:51 -0400)]
Move frequencies here from the OpenXC site.

10 years agoDocument the RAW message format, including the bus attribute.
Christopher Peplin [Thu, 26 Sep 2013 13:24:31 +0000 (09:24 -0400)]
Document the RAW message format, including the bus attribute.

10 years agoAdd a gear_lever_position signal to official set.
Christopher Peplin [Thu, 8 Aug 2013 14:34:59 +0000 (10:34 -0400)]
Add a gear_lever_position signal to official set.

This signal is primarily used on vehicles with continuously variable
transmissions, where the transmission_gear_position signal is not
useful.

11 years agoAdd license and official signal list.
Christopher Peplin [Fri, 3 May 2013 16:28:54 +0000 (12:28 -0400)]
Add license and official signal list.

11 years agoDon't use pygments highlighting in README.
Christopher Peplin [Fri, 3 May 2013 16:16:55 +0000 (12:16 -0400)]
Don't use pygments highlighting in README.

11 years agoInitial commit, moved from openxcplatform.com.
Christopher Peplin [Fri, 3 May 2013 16:15:49 +0000 (12:15 -0400)]
Initial commit, moved from openxcplatform.com.