Arduino Library für Jeti EX Bus

  • johannCH
  • johannCH's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 84
  • Thank you received: 17

TPL_KUNENA_MESSAGE_REPLIED_NEW Arduino Library für Jeti EX Bus

19 Mar 2019 09:46 - 19 Mar 2019 09:47
#43
hallo bernd

ich bin am testen mit diversen ESP32 boards und unterschiedlichen uart's 0, 1, 2.
kann der uart beim initialisieren mit

jetiEX.Start("MPU-9250", sensorsMPU9250, JETI_EX_BUS_SERIAL);

gewählt werden oder ist der uart 2 durch die definition im header file fix vorgegeben?

JetiExBusESP32Serial.h:
ESP32HardwareSerial Esp32Serial(2); // use port number 2

danke,
johann
Last edit: 19 Mar 2019 09:47 by johannCH.

Please Log in or Create an account to join the conversation.

  • Sepp62
  • Sepp62's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 305
  • Thank you received: 154

TPL_KUNENA_MESSAGE_REPLIED_NEW Arduino Library für Jeti EX Bus

22 Mar 2019 18:18
#44
Hallo Johann,
der 3. Parameter in der Start-Methode enthält die Comport-Nummer.
Ich kann jetzt nicht mehr sagen, ob ich es erfolgreich getestet habe, ist aber so gedacht.

Viele Grüße
Bernd

Please Log in or Create an account to join the conversation.

  • TeroS
  • TeroS's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • RC-Thoughts
  • Posts: 527
  • Thank you received: 370

TPL_KUNENA_MESSAGE_REPLIED_NEW Arduino Library für Jeti EX Bus

06 Oct 2019 10:04 - 06 Oct 2019 10:50
#45
Hi Sepp, a small issue:

After seeing this I cleared by libraries so only folder was yours and did a fresh & clean install of Arduino IDE 1.8.10 and tried to compile the demosensor for Arduino Pro Mini 5V 16MHz. Result is errors:
Code:
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial': (.text+0x0): multiple definition of `__vector_18' libraries\Jeti_EX_Sepp\JetiExBusAtMegaSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here HardwareSerial0.cpp.o (symbol from plugin): In function `Serial': (.text+0x0): multiple definition of `__vector_19' libraries\Jeti_EX_Sepp\JetiExBusAtMegaSerial.cpp.o (symbol from plugin):(.text+0x0): first defined here collect2.exe: error: ld returned 1 exit status Multiple libraries were found for "JetiExBusProtocol.h" Used: C:\Users\Tero exit status 1 Error compiling for board Arduino Pro or Pro Mini.

Any idea what is going on here?
Last edit: 06 Oct 2019 10:50 by TeroS. Reason: Added board-info

Please Log in or Create an account to join the conversation.

  • Sepp62
  • Sepp62's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 305
  • Thank you received: 154

TPL_KUNENA_MESSAGE_REPLIED_NEW Arduino Library für Jeti EX Bus

06 Oct 2019 11:01
#46
Pooh. You already did, what I would have recommended.

Please Log in or Create an account to join the conversation.

  • TeroS
  • TeroS's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • RC-Thoughts
  • Posts: 527
  • Thank you received: 370

TPL_KUNENA_MESSAGE_REPLIED_NEW Arduino Library für Jeti EX Bus

06 Oct 2019 11:29
#47
Recommended?

Compiling for
Arduino Mega / Mega 2560 = OK
Arduino Uno = NOK, error as above
Arduino Pro Mini 328P 5V = NOK, error as above
Arduino Pro Mini 328P 3.3V = NOK, error as above

Looks like something is not right with 328P?

Please Log in or Create an account to join the conversation.

  • Sepp62
  • Sepp62's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 305
  • Thank you received: 154

TPL_KUNENA_MESSAGE_REPLIED_NEW Arduino Library für Jeti EX Bus

06 Oct 2019 12:40
#48
ATMega 328 has its own serial class within the library. There seems to be a conflict with the built in hardware serial class. Normally, this is avoided by some #defne statements. I wonder, what has changed, that this does not seem to work anymore.
The following user(s) said Thank You: Nuecke

Please Log in or Create an account to join the conversation.

Time to create page: 0.358 seconds
Powered by Kunena Forum