Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
S

sergey-sychev

@sergey-sychev
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Mysensors Gateway on OrangePi (Zero) (opi)
    S sergey-sychev

    @mihai.aldea
    It's working on my OPi One with Armbian. MySensors and TMRh20 works!

    Only in ./MySensors: bin
    Only in ./MySensors: build
    diff -ruBdX ex ./_MySensors/drivers/RF24/RF24.cpp ./MySensors/drivers/RF24/RF24.cpp
    --- ./_MySensors/drivers/RF24/RF24.cpp<>2017-01-28 10:24:03.557215399 +0200
    +++ ./MySensors/drivers/RF24/RF24.cpp<->2017-01-28 10:58:51.757543157 +0200
    @@ -29,7 +29,7 @@
     LOCAL RF24_receiveCallbackType RF24_receiveCallback = NULL;
     #endif
    .
    -#ifdef LINUX_SPI_BCM
    +#if defined (LINUX_SPI_BCM) || (LINUX_SPI_SPIDEV)
     uint8_t spi_rxbuff[32+1] ; //SPI receive buffer (payload max 32 bytes)
     uint8_t spi_txbuff[32+1] ; //SPI transmit buffer (payload max 32 bytes + 1 byte for the command)
     #endif
    @@ -56,7 +56,7 @@
     <----->RF24_csn(LOW);
     <----->// timing
     <----->delayMicroseconds(10);
    -#ifdef LINUX_SPI_BCM
    +#if defined (LINUX_SPI_BCM) || (LINUX_SPI_SPIDEV)
     <----->uint8_t * prx = spi_rxbuff;
     <----->uint8_t * ptx = spi_txbuff;
     <----->uint8_t size = len + 1; // Add register value to transmit buffer
    diff -ruBdX ex ./_MySensors/Makefile.inc ./MySensors/Makefile.inc
    --- ./_MySensors/Makefile.inc<->2017-01-28 10:49:53.990638008 +0200
    +++ ./MySensors/Makefile.inc<-->2017-01-28 11:12:57.601198157 +0200
    @@ -1,5 +1,5 @@
     SOC=H3
    -CPPFLAGS=-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DMY_DEBUG -DLINUX_SPI_SPIDEV.
    +CPPFLAGS=-march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -DMY_RADIO_NRF24 -DMY_GATEWAY_LINUX -DLINUX_SPI_SPIDEV -DMY_RF24_CE_PIN=7 -DSPI_S
     LDFLAGS=-pthread.
     PREFIX=/usr/local
     CC=gcc
    
    Development
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular