nzfarmer1 / simple-modbus

Automatically exported from code.google.com/p/simple-modbus
0 stars 0 forks source link

Use another Serial Port on Arduino Mega #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am using Arduino Mega an i'd like to use the Serial 3
2.
3.

What is the expected output? What do you see instead?
By default, the library use the serial "0"

What version of the product are you using? On what operating system?
I am usig Simple-Modbus V7

Please provide any additional information below.

Original issue reported on code.google.com by ismerch...@gmail.com on 24 Aug 2013 at 12:48

GoogleCodeExporter commented 9 years ago
Please use V10, you can select the Serial object.

Original comment by bester.j...@gmail.com on 24 Aug 2013 at 8:03

GoogleCodeExporter commented 9 years ago
Thank you! i'll try with V10

Original comment by ismerch...@gmail.com on 27 Aug 2013 at 1:15

GoogleCodeExporter commented 9 years ago
I have change the library but i can't understatement the sintax for change the 
serial port:
Modbus_configure(&Serial , 960 ,..........
E.g. If i want to  change in port 2 "&Serial" become?
Thanks

Original comment by alberode...@gmail.com on 8 Sep 2013 at 8:34

GoogleCodeExporter commented 9 years ago
Use &Serial1, $Serial2 etc...

Original comment by bester.j...@gmail.com on 9 Sep 2013 at 8:30

GoogleCodeExporter commented 9 years ago
Yes  Very easy of course.....
Thanks

Original comment by alberode...@gmail.com on 10 Sep 2013 at 5:48

GoogleCodeExporter commented 9 years ago
This is not a defect.

Original comment by bester.j...@gmail.com on 26 Sep 2013 at 11:23