This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
functional_specification [2021/01/15 18:05] christian [What is a CAN Bus?] |
functional_specification [2021/01/17 17:29] (current) christian [What is a CAN Bus?] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Functional | + | ====== Functional |
- | ===== Overview | + | ===== Introduction |
LeisureCAN is a CAN-Bus system designed for the leisure vehicle industry - campervans, boats, caravans, ... | LeisureCAN is a CAN-Bus system designed for the leisure vehicle industry - campervans, boats, caravans, ... | ||
- | It allows manufacturers to control all electrical and electronical | + | It allows manufacturers |
===== What is a CAN Bus? ===== | ===== What is a CAN Bus? ===== | ||
- | CAN (Control | + | CAN (Controller |
===== LeisureCAN functionality ===== | ===== LeisureCAN functionality ===== | ||
Line 28: | Line 28: | ||
LeisureCAN units are plugged into the bus wherever needed in the vehicle. These units have a combination of switch inputs, analogue inputs (e.g. measuring inputs), relay outputs, and measuring gauge outputs. They can be bought or self made according to the needs of the customer. Most units will have a combination of switch inputs and relay outputs. As an example, a unit that is placed close to the dining area will have relay outputs to turn lights on and off, operate a fan, and receive switch inputs from a bank of switches. | LeisureCAN units are plugged into the bus wherever needed in the vehicle. These units have a combination of switch inputs, analogue inputs (e.g. measuring inputs), relay outputs, and measuring gauge outputs. They can be bought or self made according to the needs of the customer. Most units will have a combination of switch inputs and relay outputs. As an example, a unit that is placed close to the dining area will have relay outputs to turn lights on and off, operate a fan, and receive switch inputs from a bank of switches. | ||
+ | |||
+ | Each unit attached to the network can have up to 32 ports. A port can be a relay output, so have two connectors, or it can be a measuring gauge output providing a voltage from 0 to 5V, or it can be a switch input, that will change from 0 to 1 if connected to ground, and from 1 to 0 if the connection to ground is removed. Whoever makes the unit determines at making time which port does what, and configure the software accordingly. When a master controller queries the unit, it will send out a set of messages that describes how many ports it has, and what function they have. | ||
When the units are installed, the subscriptions can be set up, e.g. the user can configure freely how the components react to each other. | When the units are installed, the subscriptions can be set up, e.g. the user can configure freely how the components react to each other. | ||
+ | Please read the detailed LeisureCAN specification document for more information. | ||
+ | ===== Subscriptions ===== | ||
+ | A subscription is when a device reacts to the change from another device. | ||
+ | |||
+ | Any port on any device can subscribe to multiple other ports on other devices, so it can react to changes throughout the system. | ||
+ | |||
+ | So far, there are 6 subscription types, and they are as follows: | ||
+ | ^Subscription Type^Short Name^Functionality^ | ||
+ | |0|Normal Switch|If the subscribed unit receives a change from 0 to 1, it will switch on; if it receives a change from 1 to 0, it will switch off| | ||
+ | |1|Reverse Switch|If the subscribed unit receives a change from 0 to 1, it will switch off; if it receives a change from 1 to 0, it will switch on| | ||
+ | |2|Blink|If the subscribed unit receives a change from 0 to 1, it will start " | ||
+ | |3|push button|A push button subscription will switch on as soon as it receives a change from 0 to 1, but it will ignore the following change from 1 to 0. The next change from 0 to 1 will switch the subscriber off again. It's easy to have multiple subscriptions for multiple push buttons, as any push of a button will make the relay output change.| | ||
+ | |4|Measuring Data|A measuring data output port will listen to a measuring data feed, that will supply an absolute measurement together with an integer indicating the unit (e.g. " | ||
+ | |5|Any change switches|This is useful when for example a set of lights can be switched from multiple locations, e.g. different access routes leading to the same space. Each entry to the space has an on/off switch, and the relay driving the lights has a subscription to all of the switches. Any change on any of the switches will lead to a switch of the lights, no matter if the switch that changed switched from on to off or from off to on - pretty much like your traditional house electrics set-up for hallways.| | ||
===== Advantages ===== | ===== Advantages ===== | ||
The huge advantage of a LeisureCAN system is that it's freely configurable, | The huge advantage of a LeisureCAN system is that it's freely configurable, | ||
- | Once the bus cable and a pair of power cables are fitted throughout the vehicle, new components can be added with a minimal amount of wiring required. Just hook up the new component to the power cable, and connect it to a relay output of the nearest LeisureCAN unit, and you are ready to go. | + | Once the bus cable and a pair of power cables are fitted throughout the vehicle, new components can be added with a minimal amount of wiring required. Just hook up the new component to the power cable (don't forget the fuse!), and connect it to a relay output of the nearest LeisureCAN unit, and you are ready to go. |
+ | |||
+ | When you first think about a CAN bus, you might worry that this is a more complex system than a traditionally wired electrical installation. | ||
+ | |||
+ | If you have ever seen your average boat or campervan installation and tried to find a problem, you will have noticed that there are lots and lots of cables, relays and other components, and that it takes a long time even for an electrician to figure out what does what. | ||
+ | |||
+ | If you have a clean LeisureCAN installation, | ||
+ | |||
+ | If you have a bit of computer knowledge, you can fix the system yourself with a bag of parts worth £50, a soldering iron and a multimeter. | ||
+ | |||
+ | The little OLED display on the master control unit also shows all events on the bus, so a faulty switch can be diagnosed within seconds. You flick the switch, and there is no message on the bus -> you have a faulty switch. Diagnosed without opening anything, without measuring anything, without following cables through small spaces, ... | ||
===== Disadvantages ===== | ===== Disadvantages ===== | ||
You could argue that a traditional copper cable wiring to each component is more reliable, but you have to take into account that you have a lot more connectors, cables, etc. running through your vehicle. All those provide additional points of failure. | You could argue that a traditional copper cable wiring to each component is more reliable, but you have to take into account that you have a lot more connectors, cables, etc. running through your vehicle. All those provide additional points of failure. | ||
Line 42: | Line 68: | ||
Since the introduction of CAN bus systems in cars, the problems have shifted to individual components, which are now far more abundant. There are hundreds of sensors in a modern car, and huge amounts of actuators, valves, etc. that control the engine, brakes, steering, heating, air conditioning, | Since the introduction of CAN bus systems in cars, the problems have shifted to individual components, which are now far more abundant. There are hundreds of sensors in a modern car, and huge amounts of actuators, valves, etc. that control the engine, brakes, steering, heating, air conditioning, | ||
- | In my book, a complex electrical system with a CAN Bus is more reliable than a complex electrical system with traditional wiring. The most reliable system is of course a minimal system with minimal wiring and minimal functionality, | + | In my book, a complex electrical system with a CAN Bus is more reliable than a complex electrical system with traditional wiring. The most reliable system is of course a minimal system with minimal wiring and minimal functionality, |