×

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

Bi-monthly release with minor bug fixes and improvements

[RESOLVED]serial : from python to indi

  • Posts: 66
  • Thank you received: 9
Hi all :)

I have some python code :
self.writeSerial("11\n")
working with an arduino.
I would like to write an indi driver for it :
I've tried
char c[3] = {0x31,0x31,0x0a};
then
tty_write(PortFD, c, 3, &nbytes_written)
I have no error, but it doesn't work.
Any hints ?
Last edit: 7 years 8 months ago by djibb.
7 years 9 months ago #9036

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

Looks right, you checked port settings? Better link to the code.
7 years 9 months ago #9040

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

  • Posts: 66
  • Thank you received: 9

Replied by djibb on topic serial : from python to indi

github.com/djibb/indi/blob/master/3rdpar...lpy_spectrograph.cpp
All compiles well. I can launch an indiserver with it... it responds... i can connect... but sending messages doesn't work. (nothing is done on alpy).

So I think its a protocol issue.
7 years 9 months ago #9044

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

  • Posts: 66
  • Thank you received: 9

Replied by djibb on topic serial : from python to indi

Hi :) it's solve !! It was a speed TTY issue. it was not the good speed (2400 rather than 9600).

So driver is working ; )
7 years 8 months ago #9100

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

Time to create page: 0.216 seconds