9 bites üzem
9 bites üzem
Sziasztok! Abszolút kezdőként "ollózva" próbálom összehozni azt, amit szeretnék. Egy nyilvános programot találtam, amiből jó ötleteket tudok meríteni. A program elérhető itt:
http://blog.arribasail.com/2015/08/seat ... duino.html
A bajom azzal van, hogy nem tudom elindítani a 9bit-es módot az arduino-n. Kicseréltem a HardwareSerial file-okat, de akkor sem megy. Már fordításkor hibaüzenetet kapok.
A programban ezt a parancsot nem tudja értelmezni a fordító:
Serial.begin(4800, SERIAL_9N1); // enable 9 bit mode
ez pedig a hibaüzenet:
exit status 1
'SERIAL_9N1' was not declared in this scope
Tud valaki segíteni, Köszönöm előre is.
http://blog.arribasail.com/2015/08/seat ... duino.html
A bajom azzal van, hogy nem tudom elindítani a 9bit-es módot az arduino-n. Kicseréltem a HardwareSerial file-okat, de akkor sem megy. Már fordításkor hibaüzenetet kapok.
A programban ezt a parancsot nem tudja értelmezni a fordító:
Serial.begin(4800, SERIAL_9N1); // enable 9 bit mode
ez pedig a hibaüzenet:
exit status 1
'SERIAL_9N1' was not declared in this scope
Tud valaki segíteni, Köszönöm előre is.
Re: 9 bites üzem
Próbáld a setup előtt definiálni!
#define SERIAL_9N1 0x0106
https://github.com/agalliazzo/Arduino/c ... nt-2898163
#define SERIAL_9N1 0x0106
https://github.com/agalliazzo/Arduino/c ... nt-2898163
Re: 9 bites üzem
Régebbi Arduino verzióval nem megy. Melyiket használod?
http://www.tavir.hu - a gazda
Re: 9 bites üzem
>Robert
A leírásban ezt található:
Readme
This directory contains bouni's modified version of HardwareSerial for 9-bit serial communications.
This versions works for versions 1.5.x and 1.6.x of the Arduino IDE.
See this blog post for more info: http://blog.bouni.de/blog/2014/10/07/se ... h-arduino/
Nekem 1.6.13 van, de feltettem 1.5.x-et is és azzal sem ment valamiért. Ekkora különbség lehet az egyes verziók között:
>kapu48
Próbáltam ezt is, de akkor máshol hoz fel hibát. Ha a Seatalk forgalom a SERIAL_9N1 en nincs engedélyezve akkor simán fut hiba nélkül a program az Arduino Mega2560-on, szépen kiadja az nmea183 jeleket a Serial Monitor-ra. ( a port.h -ban SEATALK letiltva vagyis a 9 bites mód kikapcsolva!)
( http://blog.arribasail.com/2016/10/tech ... lator.html )
A kód:
https://bitbucket.org/scruzin/seatalk/src
köszi a törődést!
A leírásban ezt található:
Readme
This directory contains bouni's modified version of HardwareSerial for 9-bit serial communications.
This versions works for versions 1.5.x and 1.6.x of the Arduino IDE.
See this blog post for more info: http://blog.bouni.de/blog/2014/10/07/se ... h-arduino/
Nekem 1.6.13 van, de feltettem 1.5.x-et is és azzal sem ment valamiért. Ekkora különbség lehet az egyes verziók között:
>kapu48
Próbáltam ezt is, de akkor máshol hoz fel hibát. Ha a Seatalk forgalom a SERIAL_9N1 en nincs engedélyezve akkor simán fut hiba nélkül a program az Arduino Mega2560-on, szépen kiadja az nmea183 jeleket a Serial Monitor-ra. ( a port.h -ban SEATALK letiltva vagyis a 9 bites mód kikapcsolva!)
( http://blog.arribasail.com/2016/10/tech ... lator.html )
A kód:
https://bitbucket.org/scruzin/seatalk/src
köszi a törődést!
Re: 9 bites üzem
oda van írva
HardwareSerial
Modified versions of HardwareSerial for 9-bit serial communications required for Seatalk. You will need to manually replace the HardwareSerial files that came with the Arduino IDE with these files.
HardwareSerial
Modified versions of HardwareSerial for 9-bit serial communications required for Seatalk. You will need to manually replace the HardwareSerial files that came with the Arduino IDE with these files.
Re: 9 bites üzem
Igen ez megtörtént, elolvastam! Ezzel kezdtem az első bejegyzést.
Re: 9 bites üzem
Most kimondottan az 1.5.7 verziót tettem fel, mert a blogban erre hivatkoznak, de így is leakad.
Re: 9 bites üzem
Köszi közben elindult...