Skip to content

Commit bcc2732

Browse files
committed
Import Debian version 2014.03.10.1706+parrot0
kayak (2014.03.10.1706+parrot0) testing; urgency=medium * Debianize source code and import new upstream releases
1 parent 8921521 commit bcc2732

1,914 files changed

Lines changed: 362520 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CANBus-Triple/LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 etx
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

CANBus-Triple/README.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
![Logo](http://res.cloudinary.com/ddbgan4vk/image/upload/v1427295808/logo_py05gc.svg)
2+
3+
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/CANBus-Triple/CANBus-Triple?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
5+
# CANBus Triple - The car hacking platform
6+
7+
See [CANBus Triple](http://www.canb.us) for more information, or to purchase hardware.
8+
9+
## About
10+
This repository contains the base firmware and libraries for the CANBus Triple.
11+
12+
[MCP2515 Library](https://github.com/CANBus-Triple/CANBus-Triple/tree/master/avr/libraries/CANBus/src) | [Examples](https://github.com/CANBus-Triple/CANBus-Triple/tree/master/avr/examples)
13+
14+
15+
## Building
16+
### Arduino IDE
17+
This code is tested with Arduino 1.6.1. [Download](http://arduino.cc/en/Main/Software) and install the appropriate file for your platform.
18+
19+
### Get the code
20+
Clone this repo / download to your Arduino [Sketchbook](http://arduino.cc/en/guide/Environment#sketchbook)/hardware folder. The path should look like this
21+
22+
Documents/Arduino/hardware/CANBus-Triple
23+
24+
To clone:
25+
26+
``git clone https://github.com/CANBus-Triple/CANBus-Triple.git``
27+
28+
Or download the zip and extract it to your sketchbook folder.
29+
30+
![Image](http://res.cloudinary.com/ddbgan4vk/image/upload/v1423786377/download_z4of9y.jpg "")
31+
32+
### Setup
33+
Launch the Arduino IDE and select the newly available board variant from the menu bar under **Tools > Board > CANBus Triple**
34+
35+
Open the base sketch by selecting **File > Sketchbook > hardware > CANBus-Triple > avr > CANBusTriple**
36+
37+
This is the basic sketch that talks to the CAN Controllers [MCP2515](http://ww1.microchip.com/downloads/en/DeviceDoc/21801G.pdf), reads CAN packets from them, and routes them through the [Middleware](http://docs.canb.us/firmware/main.html#middleware-system) system.
38+
39+
Assure your CANBus Triple is connected to your PC via the supplied USB cable. Then select the appropriate port from **Tools > Ports**. It will probably say Arduino Leonardo beside the correct port.
40+
41+
Press the Build and Upload button:
42+
43+
![Upload](http://res.cloudinary.com/ddbgan4vk/image/upload/v1423786376/upload_hot9si.png)
44+
45+
The IDE will compile and upload to the CANBus Triple.
46+
47+
![IDE Upload](http://res.cloudinary.com/ddbgan4vk/image/upload/w_420/v1424831475/ArduinoIDEUpload_kbajva.png)
48+
49+
If you are upgrading from a version prior to 0.5.0 ensure to do also an EEPROM restore, sending 0x01 0x04 command on serial port.
50+
51+
52+
### Easy Mode
53+
54+
If you simply want to flash the newest firmware build you can use AVRDude or [XLoader](http://russemotto.com/xloader/) for windows to flash the appropriate .hex file to your device. The built firmware files are found in the builds folder of the repo.
55+
56+
Example AVRDude command:
57+
``avrdude -Cavrdude.conf -v -patmega32u4 -cavr109 -P/dev/cu.usbmodem1411 -b57600 -D -Uflash:w:CANBusTriple.cpp.hex:i ``
58+
59+
60+
## Talking over USB Serial
61+
62+
I use [CoolTerm](http://freeware.the-meiers.org/). It is free software available for Linux, MacOS, and Windows. Use the terminal software of your choice.
63+
64+
Connect to your CBT Serial port and you're ready to send commands.
65+
66+
* Send **0x0101** to get general device information.
67+
* Send **0x011001** to get CAN Bus 1 information.
68+
* Send **0x011002** to get CAN Bus 2 information.
69+
* Send **0x011003** to get CAN Bus 3 information.
70+
71+
![CoolTerm](http://res.cloudinary.com/ddbgan4vk/image/upload/w_700/v1424832745/CoolTermCBT_zdm4xz.png)
72+
73+
See [the docs](http://docs.canb.us/firmware/api.html) for available commands.
74+
75+
76+
77+
## Desktop / Mobile app
78+
79+
A hybrid web app for Android, iOS, Windows, and MacOS is in development and will be available soon.
80+
81+
82+
## Now what?
83+
Head to the [documentation site](http://docs.canb.us) for more in depth information.
84+
85+
Make sure to sign up at the [forum](http://forum.canb.us) for support and to engage with the community!

CANBus-Triple/avr/boards.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
canbustriple.name=CANBus Triple
2+
canbustriple.vid.0=0x2341
3+
canbustriple.pid.0=0x0036
4+
canbustriple.vid.1=0x2341
5+
canbustriple.pid.1=0x8036
6+
canbustriple.upload.tool=avrdude
7+
canbustriple.upload.protocol=avr109
8+
canbustriple.upload.maximum_size=28672
9+
canbustriple.upload.maximum_data_size=2560
10+
canbustriple.upload.speed=57600
11+
canbustriple.upload.disable_flushing=true
12+
canbustriple.upload.use_1200bps_touch=true
13+
canbustriple.upload.wait_for_upload_port=true
14+
15+
canbustriple.bootloader.tool=avrdude
16+
canbustriple.bootloader.low_fuses=0xff
17+
canbustriple.bootloader.high_fuses=0xd8
18+
canbustriple.bootloader.extended_fuses=0xff
19+
canbustriple.bootloader.file=caterina/Caterina.hex
20+
canbustriple.bootloader.unlock_bits=0x3F
21+
canbustriple.bootloader.lock_bits=0x2F
22+
23+
canbustriple.build.mcu=atmega32u4
24+
canbustriple.build.f_cpu=16000000L
25+
canbustriple.build.vid=0x2341
26+
canbustriple.build.pid=0x8036
27+
canbustriple.build.usb_product="CANBus Triple"
28+
canbustriple.build.board=AVR_LEONARDO
29+
canbustriple.build.core=arduino
30+
canbustriple.build.variant=canbustriple
31+
canbustriple.build.extra_flags={build.usb_flags}

0 commit comments

Comments
 (0)