Skip to content

Arduino + Softwareserial.h +TPUART #9

@sam77ma

Description

@sam77ma

Hello,
Congratulations for this repository.
I recently used a project with Arduino SoftwareSerial Library, I was wondering if it works even with KNXdevice.h + TPUART interface.
So I did a test.

My configuration was:

  1. Arduino nano (supply by PC)
    • optocoupler pin7(Rx), pin8(Tx) Arduino Nano (supply: by PC and by bus_knx respectly)
    • TPUART pin7==> pinTxD_knx ; pin8==>RxD_knx (supply by bus_knx)

Some pieces of code _test_softserial_knx.txt attach files.

However, I had the following compilation problem:....................................................................................................................

test_softserial_knx:85:35: error: no matching function for call to 'KnxDevice::begin(SoftwareSerial&, word)'
Knx.begin(SerialS, P_ADDR(1,1,80)); // start a KnxDevice session with physical address 1.1.80 on SerialS

\KnxDevice-master/KnxDevice.h:133:23: note: candidate: e_KnxDeviceStatus KnxDevice::begin(HardwareSerial&, word)
e_KnxDeviceStatus begin(HardwareSerial& serial, word physicalAddr);

\KnxDevice-master/KnxDevice.h:133:23: note: no known conversion for argument 1 from 'SoftwareSerial' to 'HardwareSerial&'
Uso la libreria KnxDevice-master nella cartella: ...\libraries\KnxDevice-master (legacy)
Uso la libreria SoftwareSerial alla versione 1.0 nella cartella: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SoftwareSerial
exit status 1
no matching function for call to 'KnxDevice::begin(SoftwareSerial&, word)'
...........................................................................................................................

Is there a way to get around this problem?
Thank you.
Samuele
_test_softserial_knx.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions