Hi,
I am newbie in My sensors and have problem with BananaPi M1 Soc=A20.
When i try to configure MySensors Gateway always after compilation i receive that:
root@bananapi:/home/pi/install/MySensors# ./bin/mysgw -d
mysgw: Starting gateway...
mysgw: Protocol version - 2.2.0-rc.2
mysgw: MCO:BGN:INIT GW,CP=RNNGL---,VER=2.2.0-rc.2
mysgw: TSF:LRT:OK
mysgw: TSM:INIT
mysgw: TSF:WUR:MS=0
mysgw: !TSM:INIT:TSP FAIL
mysgw: TSM:FAIL:CNT=1
mysgw: TSM:FAIL:DIS
mysgw: TSF:TDI:TSL
Compilation always OK without any errors.
Hardware is connected like need to be and connection work on RaspberryPi 2 (same GPIO pinout).
I try with many difference settings in compilation but without sucsses.
With gpio readall i see all GPIOs and can comand it .
root@bananapi:/home/pi/install/MySensors# gpio readall
+----------+-Rev3-+------+--------+------+-------+
| wiringPi | GPIO | Phys | Name | Mode | Value |
+----------+------+------+--------+------+-------+
| 0 | 17 | 11 | GPIO 0 | OUT | High |
| 1 | 18 | 12 | GPIO 1 | IN | Low |
| 2 | 27 | 13 | GPIO 2 | ALT4 | Low |
| 3 | 22 | 15 | GPIO 3 | IN | Low |
| 4 | 23 | 16 | GPIO 4 | OUT | High |
| 5 | 24 | 18 | GPIO 5 | IN | Low |
| 6 | 25 | 22 | GPIO 6 | IN | Low |
| 7 | 4 | 7 | GPIO 7 | IN | Low |
| 8 | 2 | 3 | SDA | ALT5 | Low |
| 9 | 3 | 5 | SCL | ALT5 | Low |
| 10 | 8 | 24 | CE0 | IN | Low |
| 11 | 7 | 26 | CE1 | ALT5 | Low |
| 12 | 10 | 19 | MOSI | IN | Low |
| 13 | 9 | 21 | MISO | IN | Low |
| 14 | 11 | 23 | SCLK | ALT5 | Low |
| 15 | 14 | 8 | TxD | OUT | High |
| 16 | 15 | 10 | RxD | OUT | High |
| 17 | 28 | 3 | GPIO 8 | ALT0 | Low |
| 18 | 29 | 4 | GPIO 9 | IN | Low |
| 19 | 30 | 5 | GPIO10 | IN | Low |
| 20 | 31 | 6 | GPIO11 | ALT4 | Low |
+----------+------+------+--------+------+-------+
This is some of my configures:
./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=8 --my-rf24-cs-pin=25 --my-gateway=ethernet --my-port=5003
./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=24 --my-rf24-cs-pin=22 --my-gateway=ethernet --my-port=5003
./configure --spi-spidev-device=/dev/spidev0.0 --my-transport=nrf24 --my-rf24-ce-pin=10--my-rf24-cs-pin=6 --my-gateway=ethernet --my-port=5003
This is my answer on list devices
root@bananapi:/home/pi/install/MySensors# ls /dev/spi*
/dev/spidev0.0 /dev/spidev0.1
Everything need to be ok but is not .
Because thi is not a my 1st project i know all work on RaspberryPi 2 and Orange Pi PC - Soc=H3.
I have a problem with Soc= A20.
Please help
Kind Regards