brendanhoran / ollie-hw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ollie

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

Hardware:

Pinout:

Pinout

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 firmware
  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.

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

About

License:Other