×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Indi_duino, cannot operate handshake

  • Posts: 102
  • Thank you received: 13
Dear all,

I am trying to set-up the indi_duino driver along with an arduino uno. To make it short, it works perfectly, but... Only when I am using the IDE to compile firmware for arduino.
When I try to compile StandardFirmata and push it to the arduino with my own scripts, it looks like something is going wrong, but I cannot understand what. (my upload script works perfectly with the firmware generated by the IDE, so it must be something related to compilation).
The bizarre thing is that, apart from firmata all my other firmware are working well (They are much more simple however. but can use serial without problem)
I was wondering if it was possible to understand from the indi_duino logs if there was an option/compile time variable that the IDE was setting and that I would be missing.
I there a chance that it is something related to the behaviour of reset on serial connexion ? that I am setting in my scripts ?

Thank you in advance for your help, here are my indi_duino logs:

<code> CONNECT='On'
2019-06-21T08:19:29: Driver indi_duino: queuing responsible for <newSwitchVector device='Arduino' name='CONNECTION'>
2019-06-21T08:19:29: Client 0: queuing <newSwitchVector device='Arduino' name='CONNECTION'>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 1:
<newSwitchVector device="Arduino" name="CONNECTION">
<oneSwitch name="CONNECT">
On
</oneSwitch>
</newSwitchVector>

2019-06-21T08:19:29: Driver indi_duino: sending msg copy 1 nq 1:
<newSwitchVector device="Arduino" name="CONNECTION">
<oneSwitch name="CONNECT">
On
</oneSwitch>
</newSwitchVector>

2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] State 0 is on'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Connecting to /dev/ttyACM0 @ 57600'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 2:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] State 0 is on"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 2:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] State 0 is on"/>

2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Connecting to /dev/ttyACM0 @ 57600"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Connecting to /dev/ttyACM0 @ 57600"/>

2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Port FD 4'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Connection successful, attempting handshake...'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 2:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Port FD 4"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 2:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Port FD 4"/>

2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 2:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Connection successful, attempting handshake..."/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 2:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Connection successful, attempting handshake..."/>

2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:29: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:29: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:29: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:29" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:30: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:30: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:30: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:30: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:30: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:30: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:30: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:30" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:31: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:31: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:31: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:31: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:31: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:31: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:31: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:31" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:32: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:32: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:32: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:32: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:32: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:32: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:32: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:32" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:33: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:33: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:33: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:33: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:33: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:33: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:33" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:34: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:34: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:34: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:34: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:34" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:34: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:34" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:34: Driver indi_duino: read message Arduino '[DEBUG] Sending REPORT_FIRMWARE'
2019-06-21T08:19:34: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:34: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:34: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:34" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:34: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:34" message="[DEBUG] Sending REPORT_FIRMWARE"/>

2019-06-21T08:19:34: Driver indi_duino: read message Arduino '[DEBUG] Handshake failed.'
2019-06-21T08:19:34: Client 0: queuing <message device='Arduino' name=''>
2019-06-21T08:19:34: Client 5: queuing <message device='Arduino' name=''>
2019-06-21T08:19:34: Client 0: sending msg copy 2 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:34" message="[DEBUG] Handshake failed."/>

2019-06-21T08:19:34: Client 5: sending msg copy 1 nq 1:
<message device="Arduino" timestamp="2019-06-21T08:19:34" message="[DEBUG] Handshake failed."/>

2019-06-21T08:19:34: Driver indi_duino: read setSwitchVector Arduino CONNECTION Alert
CONNECT='Off'
DISCONNECT='On'
2019-06-21T08:19:34: Client 0: queuing <setSwitchVector device='Arduino' name='CONNECTION'>
2019-06-21T08:19:34: Client 5: queuing <setSwitchVector device='Arduino' name='CONNECTION'>
2019-06-21T08:19:34: Client 0: sending msg copy 2 nq 1:
<setSwitchVector device="Arduino" name="CONNECTION" state="Alert" timeout="60" timestamp="2019-06-21T08:19:34">
<oneSwitch name="CONNECT">
Off
</oneSwitch>
<oneSwitch name="DISCONNECT">
On
</oneSwitch>
</setSwitchVector>

2019-06-21T08:19:34: Client 5: sending msg copy 1 nq 1:
<setSwitchVector device="Arduino" name="CONNECTION" state="Alert" timeout="60" timestamp="2019-06-21T08:19:34">
<oneSwitch name="CONNECT">
Off
</oneSwitch>
<oneSwitch name="DISCONNECT">
On
</oneSwitch>
</setSwitchVector></code>
Last edit: 4 years 9 months ago by dolguldur.
4 years 9 months ago #40361

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

  • Posts: 2876
  • Thank you received: 809
Is this intended to be a homemade INDI controlled focuser in the end or is this some other device ?

If you are planning to make a focuser, then I would recommend making it communicate using the Moonlite protocol and then use that driver to control it from Ekos. Ultimately you will want to control it like a focuser and right now INDI duino only can create generic INDI devices. I can send you some info on building and communicating with it.

If you are planning on creating a customized generic INDI device, INDI duino is really for you. And I can help you with that too.

But first, what is your goal ?
The following user(s) said Thank You: dolguldur
4 years 9 months ago #40370

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

  • Posts: 102
  • Thank you received: 13
My intent is to connect some "generic" devices to thr arduino like a bunch of relays and servos mainly. I am using something else for focusing (Pololu TIC).
I am trying to build the StandardFirmata sketch with arduino-cmake ng (github.com/arduino-cmake/Arduino-CMake-NG) but I am having also trouble with it unfortunately, I cannot build...

But eventually if I manage to get everything to work with arduino-cmake-ng, I will report it here.
4 years 9 months ago #40373

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

  • Posts: 2876
  • Thank you received: 809
gotcha, ok.

I played around with INDI Duino for a bit just to experiment with it. It did work fairly well, but I was using the Arduino IDE, which you already mentioned did work for you. If you are using your own scripts and Arduino Cmake, I haven't tried that sorry.
4 years 9 months ago #40374

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

  • Posts: 298
  • Thank you received: 46
Hi there,

I found one of my old scripts to compile firmata from commandline, i ran a test and it did generate the .hex files with and without the bootloader.
This time I used the latest version of arduino IDE installed on Ubuntu, just make sure you get the paths correct.
$HOME/Downloads/arduino/arduino-1.8.9/arduino-builder -compile -logger=machine -hardware $HOME/Downloads/arduino/arduino-1.8.9/hardware -tools $HOME/Downloads/arduino/arduino-1.8.9/tools-builder -tools $HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -built-in-libraries $HOME/Downloads/arduino/arduino-1.8.9/libraries -libraries $HOME/sketchbook/libraries -fqbn=arduino:avr:micro -ide-version=10809 -build-path $HOME/Downloads/arduino/apa -warnings=none -build-cache $HOME/Downloads/arduino/apa -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=$HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avr-gcc-5.4.0-atmel3.6.1-arduino2.path=$HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA.path=$HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.arduinoOTA-1.2.1.path=$HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude.path=$HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -prefs=runtime.tools.avrdude-6.3.0-arduino14.path=$HOME/Downloads/arduino/arduino-1.8.9/hardware/tools/avr -verbose $HOME/sketchbook/libraries/Firmata/examples/StandardFirmata/StandardFirmata.ino

Then I'm not sure about how to flash the arduino with the .hex file, I used avrispmkII, but it should be possible to find out how by changing the setting in arduino IDE to show verbose output and then start the IDE from commandline to see how it's done.

Cs
/Markku
The following user(s) said Thank You: dolguldur
4 years 9 months ago #40379

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

  • Posts: 102
  • Thank you received: 13
Ok folks, thank you very much for your help. I finally found where was my problem.... Very dumb actually, in the process of turning the .ino to a proper cpp program, I forgot to add some specific startup routine (init()) which was there in the other proper program I was building/flashing...

Everything runs fine now
4 years 9 months ago #40382

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

Time to create page: 1.004 seconds