Git Product home page Git Product logo

ollie-hw's Introduction

Ollie

  1. Hardware
  2. Pinout
  3. Firmware
  4. UART
  5. CAN

Hardware:

Pinout:

Pinout

  • UARTA and UARTB voltage level can be set using slide switch (1V8, 3V3 and 5V).
  • RS232 RX and RS232 TX pins ±12V. RS232 RX Absolute Max ±25V.

Firmware

Firmware is based on cantact-fw and candleLight_fw combined into a single binary file. The firmware can be selected using the dip switch (FW SEL), setting the switch ON the device will boot with candlelight_fw, if switched OFF it will boot with cantact-fw.

Flashing new firmware

|

  1. Download:
  2. Install stm32cubeprog
  3. Set the jumper to enter bootloader mode.
  4. Connect USB and flash firmware

UART

Based on XR21V1414 4-ch USB to UART chip. Drivers are available Here

Windows

Once you connect ollie to a Windows machine, you should be able to see 4 COM port channels in the device manager.

dm

Linux

On Linux you should see four devices created, typically /dev/ttyXRUSB[0-3]. If you see /dev/ttyACM[0-3], there is a chance the UART might not behave correctly in this case you need to install drivers by following these steps:

  1. # git clone https://github.com/brendanhoran/xr_usb_serial_common
  2. # make (on raspberry pi make sure you have the kernel headers installed)
  3. # cp -a ../xr_usb_serial_common-1a /usr/src/
  4. # dkms add -m xr_usb_serial_common -v 1a
  5. # dkms build -m xr_usb_serial_common -v 1a
  6. # dkms install -m xr_usb_serial_common -v 1a
  7. # echo blacklist cdc-acm > /etc/modprobe.d/blacklist-cdc-acm.conf
  8. # update-initramfs -u
  9. Now plug in ollie.

Note: RS485 is connected to Ch C and RS232 is connected to Ch D. RS485 Bias(220R) and Termination resister(120R) can be enables using the dip switch. Refer to pinout

CAN

Ollie runs dual CAN firmware, it can be used with candleLight or slcan firmware.

Setting the dip to postion 1 (as shown in the picture) will enable candleLight. Postion 2 enables slcan. Switch must be set before the Micro USB is plugged in.

Ollie can also run (Peak CAN) PCAN firmware, follow the instruction to update the firmware.

Note: CAN Bus termination resistor(120R) can be enabled by setting the dip switch. Refer to pinout

1- candleLight

candleLight firmware is compatible with MicroBus app (by codenocold), which is available for Windows and Ubuntu.

On windows you can also use with Cangaroo app. Download link available Here. For linux you can compile it yourself, source available Here

candleLight Python

Python drivers are available Here

candleLight on Linux

candleLight is natively supported under linux using gs_usb driver. Just plug it in and using this command:

ip link set can0 up type can bitrate 500000

2- slcan

On windows you can use CANtact app. Download link available Here

slcan Python

python-can library documentation is available Here

3- PCAN

When flashed with PCAN-USB firmware ollie can be used with PCAN-View or other softwares such as BUSMASTER.


© 2021 meatPi Electronics | www.meatpi.com | PO Box 5005 Clayton, VIC 3168, Australia

ollie-hw's People

Contributors

slimelec avatar slim-sst avatar brendanhoran avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.