[Ovmsdev] More sophisticated hardware
mikeljo at mac.com
Thu Apr 11 17:02:58 HKT 2013
Am 11.04.2013 um 04:43 schrieb Mark Webb-Johnson <mark at webb-johnson.net>:
> An optional second display (with second CPU) is probably the cleanest way. We would need to provide Power + Ground (2 or 3 wires) and serial (2 or 4 wires) - so that would be worst case 7 wires. Perhaps a RJ45 cable would be flexible - allowing us to just use CAT5 cables which are available in so many lengths and easy to connect/disconnect? If we use the CAN, then we need 2 more wires per CAN bus.
or a good sub-d 9. It is better for daily use. For one time installation RJ45 is ok. But when you remove and connect every day they are not very handy.
For the communication between the two units you can use i2c or SPI. It is a question of the implementation. What is fast, easy, secure. Secure means that the data that was receive are the same that was send. CRC for example.
> The optional display would perhaps be the best solution (rather than putting it all in one box). The combination of the two would be more expensive than one, but it would offer more flexibility (and the display-less version would be cheaper). The main OVMS unit could remain hidden in the car, and for those who want the display, they just add it on. OVMS would work with either the optional display or the smartphone via bluetooth display (or both).
I think this is a great solution. So anybody can get what he want. Buy first only the main unit. If he is satisfied (certain he will!) and want more then he can add the display unit.
> What do people think? Is this a good compromise?
> Main OVMS box
> 2x CAN ports
> 1x OBDII port
> BT (BLE)
> Optional display box
> 4.3" Display with touch
> Quick disconnect
> Optional cellphone display
> via BLE
Thats what i'm thinking for. :-)
Oh, i think i forget one point:
- Potential free switch output (Relais, one or more) eventually in a separate box, as an add on.
You remember that there was a question about this.
But i think this is only an option of an option.............
When you start thinking for the display unit, -> howto mounting this to the dashboard or window.
> Regarding the 'raw' mode - that was my surprise! Yes it should be possible to just software switch the OBDII controller chip into the serial / bluetooth port - both are just serial async - and then Torque/whatever should just work. But that would mean OVMS couldn't use the OBDII port while raw mode was in use. We could also do a 'shared' mode - but that would be a lot more work (to fully decode the OBDII controller protocol and support shared PID polling, initialisation and control).
Oh, i can surprise you. ;-)
I think it is no problem when in raw mode that OVMS could not use the Port. This mode is for logging with external Tools, Hardware etc. only. And only for a short time.
Or, you implement a mode that the OVMS do like a "ELM" interface. I mean it work like this. It acts like a CAN2BT interface with AT commands.
And so anybody can use the App he want on the Smartphone he want over BLE.
> Regards, Mark.
> On 10 Apr, 2013, at 5:01 PM, Michael Jochum wrote:
>> my two cents:
>> - minimum 2 CAN Ports
>> - BT
>> - Wifi
>> - 3G
>> - GPS
>> - Display with Touch (eventually in an separate case, if possible)
>> - as an option use of the Smartphone as Display. But i prefer that the Module has its own
>> I know the Problems with the BT Stack on the iDevices. In the moment we can use the BT Stack, but what happen in the future?
>> We talk about a non jailbreak device!
>> When we can separate the Display from the main unit, it is possible to cover the main unit. And with a "quick" release for the display it can secure in your pocket when you leave the car. Nice for twizzy i think. The second is that when we have more than one CAN Bus attached there are a lot of cables to the unit. Bringing this to a device mounted on the dash in a viewable area dont look good.
>> I dont talk about a BT (or XBee) connection between the main unit and the display!!!!!! I mean a cable with a handy connector.
>> 2 CPUs are nice ;-)
>> Logging with GPS to an SD Card, with automatic transfer to my Homeserver (or the "Cloud") when the module connects to known Wifi Network(s) will be GREAT.
>> Could it be possible to switch the module in "raw" mode. So that the CAN Stream is available at the BT. So it can use as an "ELM" (or so) interface. With the same commands like a "standard" CAN-BT device.
>> With the possibility to switch between the different CAN Buses. I think i remember you wrote something about this before!?
>> Michael J.
>> Am 10.04.2013 um 04:21 schrieb Mark Webb-Johnson <mark at webb-johnson.net>:
>>> Michael, Nikki, Kevin, etc,
>>> The reason for the display/touchpad is twofold:
>>> Real-time display of vehicle information (0-60 times, sensors, etc)
>>> Initial setup and monitoring of the OVMS module (avoiding SMS and making troubleshooting much easier)
>>> The display does add complexity+cost, increases theft worries, and is a hassle.
>>> I've previously kept away from using a smartphone as a display for a few reasons:
>>> The smartphone runs hot
>>> It is not elegant
>>> Bluetooth is a 'bag of hurt' on Apple
>>> To use a bluetooth v2 (the standard, with excellent support) module with Apple devices requires the module to be a part of the MFI (Made For iPhone) program. That is a nightmare. Now, more recent devices (iPhone 4S and above, plus very modern Android devices) support bluetooth v4 (BLE) and Apple _supposedly_ has relaxed the rules with that - so long as the functionality is not core (ie; we add it to the existing ovms apps, and not having a device won't stop the app from working), we can probably get it through (but this is at the whim of Apple's approval process). BLE (v4) modules are damn expensive - but significantly less expensive than a 4.3" LCD display with touchpad :-)
>>> Others use WIFI as a way of bypassing Apple's restrictions, but that is nasty. You have to set the device as your wifi access point, and you then lose Internet connectivity.
>>> If we went the use-the-smartphone-as-the-display route, that would reduce costs and complexity (even with BLE). We could do without the second CPU (limiting us to 2xCAN ports and 1xOBDII). I like Michael's idea of exposing some A/D and/or digital I/O ports that could be used to support other vehicle types. The displays are certainly easier to program and look a lot better.
>>> We've also got 6 async ports on the PIC32MX795, so we could also expose the same display protocol that the smartphone apps would use via that - perhaps for a plug-in add-on display option?
>>> Going that route would result in:
>>> 1x PIC32MX795 cpu for 2xCAN ports, 1xOBD-II main control tasks (always on)
>>> Bluetooth (BLE)
>>> I/O exposed would be:
>>> Pure OBDII (via standard DB9) connector
>>> OVMS standard DB9 connector (extended for second CAN bus)
>>> OVMS expansion connector (diagnostics, ICSP, plus A/D, digital I/O and async)
>>> USB (for firmware update)
>>> GSM antenna
>>> GPS antenna
>>> (SIM slot internal is probably still best, to avoid theft concerns with the SIM)
>>> Enclosure size would probably have to be bigger than the current one - perhaps the same width/height, just increase the length. I am a little concerned about Wifi and Bluetooth antennas - putting them on the motherboard modules is by far the easiest, but that won't work with a metal case.
>>> Cost probably US$150 - US$170 range (bluetooth, wifi and 3G being responsible for this).
>>> Regards, Mark.
>>> On 10 Apr, 2013, at 2:30 AM, Michael Balzer wrote:
>>>> Am 09.04.2013 12:14, schrieb Nikki Gordon-Bloomfield:
>>>>> Using the Bluetooth serial connection, it should be possible for users to implement a GUI with existing smart phone technology.
>>>> Oh I forgot: yes! That's the idea behind adding Bluetooth to the Twizplay, they could omit the LCD and use an App as the display device.
>>>> That's really a good option I think! Would also keep cost down.
>>>>> For Twizy owners that's an added bonus. There are no door locks, and getting in is as simple as reaching inside and pulling the door handle.
>>>> ...that's why most Twizplay owners currently use a special quick lock mount just for the Twizplay -- so you need both a mount for the display and one for your mobile phone... bad.
>>>>> Moving forward, I think it'd be great if someone in the self-build community (You may have to work with someone else) could produce a raw "battery pack to OVMS" module, which enables those with converted or custom EVs to use the OVMS system using a standard set of protocols and Can messaging -- or perhaps direct using an add-on IO device?
>>>> That would make the OVMS an option for Ebike and Escooter drivers as well. I've got one of these: http://www.emco-elektroroller.de/elektroroller/novum.html
>>>> ...just a simple chinese scooter, it doesn't have any data port, and it's only display is an analog voltage meter for the overall battery voltage -- you have to guess the SOC based on how deep the voltage drops under load.
>>>> The most simple solution would be to provide two analog I/O ports to feed pack voltage and current (measured as voltage difference on a shunt) into the OVMS. The A/D conversion should be fast enough to provide at least 10 ms resolution, so we can implement an Ah counter in software. Also some digital I/O ports should be available to measure the distance driven (by a reed sensor mounted to a tyre) and maybe record some other system status.
>>>> So, basically the same as available solutions like the "Cycle Analyst" or the "WattsUp" do, but with the added OVMS coolness.
>>>> Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
>>>> Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk
>>> OvmsDev mailing list
>>> OvmsDev at lists.teslaclub.hk
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OvmsDev