adlerweb / asysbus Goto Github PK
View Code? Open in Web Editor NEWArduino System Bus
License: GNU General Public License v3.0
Arduino System Bus
License: GNU General Public License v3.0
In some circumstances packages received via CAN might be repeatedly relayed to UART. Cause unknown atm - same packet works fine other times.
When I compile the asysbus Firmware with Arduino 1.8.5 there are a lot of compiling errors. It starts with:
simple:16: error: 'MCP_16MHz' was not declared in this scope
ASB_CAN asbCan0(10, CAN_125KBPS, MCP_16MHz, 2);
If I correct it with "MCP_16MHZ" the Odyssey starts. Is there an updated version of the can_bus _shield firmware available from your site?
Die Definition der Methode "begin" in der Library MCP_CAN (mcp_can.h) von adlerweb nimmt von asysbus entweder ein oder drei argumente entgegen:
byte begin(byte idmodeset, byte speedset, byte clockset); // Initilize controller prameters
byte begin(byte speedset); // Initilize controller prameters
Die Methode "begin", (asb_can.cpp) stellt der ersten aber zwei zur Verfügung:
byte ASB_CAN::begin() {
lastErr = _interface.begin(_speed, _clockspd);
}
Das Beispiel "simple" von asysbus lässt sich somit nicht kompilieren. Kann es sein, dass die Version des CAN_BUS_Shield nicht mit derjenigen von asysbus übereinstimmt.
...Arduino\libraries\asysbus-master\asb.cpp: In member function 'bool ASB::hookAttachModule(ASB_IO*)':
...Arduino\libraries\asysbus-master\asb.cpp:326:92: error: 'done' was not declared in this scope
}while(address < _cfgAddrStop && check != 0xFF && check != 0x00 && done < num);
Ausserdem versteh ich die Commands nicht richtig:
0x51 | 1 | 1 Bit Message (e.g. on/off)
im Sketch simple wird es volgendermaßen gelöst
{ASB_CMD_1B, 1};
Wie komm ich von 1B (wahrscheinlich HEX) auf 51 (wahrscheinlich DEZ)?
Ich kann mir nur 27 erklären aber das ist wohl nicht richtig
Vielen Dank für eine Lösung / Erklärung
When using attach on DOut or DIn the configuration reload (Detach/Attach) will hang if more than two inputs/outputs are used
Hello Florian, thanks for your work on this nice project.
I am getting some issues with unicast messages, sending messages like this:
MY_NODE_ID = 0x3;
ASB_BRIDGE_NODE_ID = 0x1;
bool sendTemp() {
float temperature;
ds18b20Sensors.requestTemperatures();
temperature = ds18b20Sensors.getTempCByIndex(0);
int firstTempPart = temperature;
temperature -= firstTempPart;
int secondTempPart = temperature * 10;
Serial.println(firstTempPart);
Serial.println(secondTempPart);
const unsigned int targetAdress = ASB_BRIDGE_NODE_ID;
const char tempPort = 0x10;
const byte tempData[3] = {ASB_CMD_S_TEMP, firstTempPart, secondTempPart};
const byte tempState = asb0.asbSend(ASB_PKGTYPE_UNICAST, targetAdress, tempPort, sizeof(tempData), tempData);
return (tempState == 0);
}
and receiving them like this:
Type: 0x0
Target: 0x1
Source: 0x3
Port: 0xFFFFFFFF
Length: 0x3
0xA0 0x1A 0x3
I am wondering, why it is not Type: 0x2 and Port: 0x10. My goal is, to get different Temperatures from one Node and use different ports for that.
I would appreciate If you have a hint for me solving this. Thanks
I bought some modules from china looking a little bit different than the most common.
With these ones asb-messages are only send, they are not able to receive messages. I figured out that they are working well with a sample code of Seeed-Studio/CAN_BUS_Shield of the same version using for asysbus.
So i think there has to be some issue here.
I checked and compared the wiring of the two slightly different modules but found no difference there.
If ASB_CAN is attached but no controller connected random ghost-messages are injected into the packet processor
Hallöle,
ich wollt mal Fragen wie hier der Stand der Dinge ist, weil ich gerade vorhabe ein Hausbus in ein Haus zu integrieren.
Gibt es noch irgendwelche Probleme oder ähnliches??
viele grüße
Lassi
(sorry german log)
Arduino: 1.8.12 (Windows 10), TD: 1.51, Board: "Arduino Nano, ATmega328P (Old Bootloader)"
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Win10 Home x64\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Win10 Home x64\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Win10 Home x64\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328old -ide-version=10812 -build-path C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117 -warnings=all -build-cache C:\Users\WIN10H1\AppData\Local\Temp\arduino_cache_570897 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\WIN10H1\AppData\Local\Temp\arduino_modified_sketch_926316\simple.ino1\AppData\Local\Temp\arduino_build_26117 -warnings=all -build-cache C:\Users\WIN10H
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Win10 Home x64\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Win10 Home x64\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Win10 Home x64\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328old -ide-version=10812 -build-path C:\Users\WIN10H1\AppData\Local\Temp\arduino_cache_570897 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino5.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\WIN10H1\AppData\Local\Temp\arduino_modified_sketch_926316\simple.ino
Using board 'nano' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o nul1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o nul
Alternatives for asb.h: [[email protected]]
ResolveLibrary(asb.h)
-> candidates: [[email protected]]
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "C:\Users\WIN10H
Alternatives for mcp_can.h: [CAN_BUS_Shield-master]
ResolveLibrary(mcp_can.h)
-> candidates: [CAN_BUS_Shield-master]
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o nul1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o nul
Alternatives for SPI.h: [[email protected]]
ResolveLibrary(SPI.h)
-> candidates: [[email protected]]
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "C:\Users\WIN10H
Alternatives for EEPROM.h: [[email protected]]
ResolveLibrary(EEPROM.h)
-> candidates: [[email protected]]
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o nul1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o "C:\Users\WIN10H
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_comm.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io_din.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io_dout.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_uart.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master\mcp_can.cpp" -o nul
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.cpp" -o nul
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\preproc\ctags_target_for_gcc_minus_e.cpp"1\AppData\Local\Temp\arduino_build_26117\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Users\Win10 Home x64\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\WIN10H
Sketch wird kompiliert...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp" -o "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\sketch\simple.ino.cpp.o"
In file included from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master/asb_io.h:27:0,
from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master/asb.h:32,
from C:\Users\WIN10H~1\AppData\Local\Temp\arduino_modified_sketch_926316\simple.ino:9:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:145:20: warning: 'EEPROM' defined but not used [-Wunused-variable]
static EEPROMClass EEPROM;
^~~~~~
Compiling libraries...
Compiling library "asysbus-master"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_comm.cpp" -o "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\libraries\asysbus-master\asb_comm.cpp.o"1\AppData\Local\Temp\arduino_build_26117\libraries\asysbus-master\asb.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb.cpp" -o "C:\Users\WIN10H
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp" -o "C:\Users\WIN10H1\AppData\Local\Temp\arduino_build_26117\libraries\asysbus-master\asb_can.cpp.o"1\AppData\Local\Temp\arduino_build_26117\libraries\asysbus-master\asb_io.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io.cpp" -o "C:\Users\WIN10H
C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb.cpp: In member function 'unsigned int ASB::cfgFindFreeblock(byte, byte)':
C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb.cpp:111:52: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if(((int)_cfgAddrStop-_cfgAddrStart-bytes) < 0) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io.cpp:27:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:145:20: warning: 'EEPROM' defined but not used [-Wunused-variable]
static EEPROMClass EEPROM;
^~~~~~
C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp: In member function 'virtual byte ASB_CAN::begin()':
C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp:61:53: error: no matching function for call to 'MCP_CAN::begin(byte&, byte&)'
lastErr = _interface.begin(_speed, _clockspd);
^
In file included from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.h:25:0,
from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp:27:
C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master/mcp_can.h:124:10: note: candidate: byte MCP_CAN::begin(byte, byte, byte)
byte begin(byte idmodeset, byte speedset, byte clockset); // Initilize controller prameters
^~~~~
C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master/mcp_can.h:124:10: note: candidate expects 3 arguments, 2 provided
C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master/mcp_can.h:125:10: note: candidate: byte MCP_CAN::begin(byte)
byte begin(byte speedset); // Initilize controller prameters
^~~~~
C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master/mcp_can.h:125:10: note: candidate expects 1 argument, 2 provided
C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp: In member function 'virtual bool ASB_CAN::asbSend(byte, unsigned int, unsigned int, char, byte, const byte*)':
C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp:119:59: warning: invalid conversion from 'const byte* {aka const unsigned char*}' to 'byte* {aka unsigned char*}' [-fpermissive]
lastErr = _interface.sendMsgBuf(addr, 1, len, data);
^
In file included from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.h:25:0,
from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp:27:
C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master/mcp_can.h:133:10: note: initializing argument 4 of 'byte MCP_CAN::sendMsgBuf(long unsigned int, byte, byte, byte*)'
byte sendMsgBuf(unsigned long id, byte ext, byte len, byte *buf); // Send message to transmit buffer
^~~~~~~~~~
In file included from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io.h:27:0,
from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb.h:32,
from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.h:24,
from C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_can.cpp:27:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h: At global scope:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src/EEPROM.h:145:20: warning: 'EEPROM' defined but not used [-Wunused-variable]
static EEPROMClass EEPROM;
^~~~~~
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10812 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master" "-IC:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM\src" "C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master\asb_io_din.cpp" -o "C:\Users\WIN10H~1\AppData\Local\Temp\arduino_build_26117\libraries\asysbus-master\asb_io_din.cpp.o"
Bibliothek asysbus-master in Version 0.0.4 im Ordner: C:\Users\Win10 Home x64\Documents\Arduino\libraries\asysbus-master wird verwendet
Bibliothek CAN_BUS_Shield-master im Ordner: C:\Users\Win10 Home x64\Documents\Arduino\libraries\CAN_BUS_Shield-master (legacy) wird verwendet
Bibliothek SPI in Version 1.0 im Ordner: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI wird verwendet
Bibliothek EEPROM in Version 2.0 im Ordner: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM wird verwendet
exit status 1
Fehler beim Kompilieren für das Board Arduino Nano.
Das ist die Fehlermeldung die beim Example simple auftritt keine Ahnung woran das liegt
I am trying to send and receive a package between two Arduino Nanos. I am using the SeedStudio CAN_BUS_Shield library (your fork is marked as deprecated). Sending and receiving is no problem with send_Blink and receive_Blink from SeedStudios library. But with your library i am only able to send packages...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.