OBD - II adapter and software serial - need help in library modification


hello!

i use obd-ii adapter arduinodev.com , arduino obd library https://github.com/stanleyhuangyc/arduinoobd/tree/master/libraries/obd

this library work if connect adapter rx , tx pin of arduino (i have serial output version of adapter)

how can use library softwareserial ?
i need hardware serial free use usb connection facilities of arduino board communicate master computer on usb.

can check library , modification software serial?

thanks.
sorry bad english.

that library abstracts serial port use. add include statement header file, softwareserial. create instance of softwareserial class, called obduart, , comment out stuff:

code: [select]
#ifndef obduart
#if defined(__avr_atmega32u4__) || defined(__avr_atmega2560__) || defined(__avr_atmega1280__) || defined(__avr_atmega644p__)
#define obduart serial1
#else
#define obduart serial
#endif
#endif


Arduino Forum > Using Arduino > Project Guidance > OBD - II adapter and software serial - need help in library modification


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support