dokeeffe / indi-aldiroof

Arduino powered motor controller and an INDI driver for an astronomical observatory roof powered by an Aldi special 550w electric hoist
12 stars 4 forks source link

ARDUINO BOARD INCOMPATABLE FIRMWARE #2

Closed Trigger-broom-289 closed 7 years ago

Trigger-broom-289 commented 7 years ago

Hello,

So I got myself an Arduino Pro Micro, uploaded the sketch to it without issues, installed the indi driver and on connect I get the following:

2017-03-11T22:26:24: Driver indi_aldiroof: read message Aldi Roof 'ARDUINO BOARD INCOMPATABLE FIRMWARE.' 2017-03-11T22:26:24: Client 0: queuing 2017-03-11T22:26:24: Client 0: sending msg copy 1 nq 1:

2017-03-11T22:26:24: Driver indi_aldiroof: read setSwitchVector Aldi Roof CONNECTION Alert CONNECT='Off' DISCONNECT='On' 2017-03-11T22:26:24: Client 0: queuing 2017-03-11T22:26:24: Client 0: sending msg copy 1 nq 1:

Off On

any idea please?

thanks Stephane

Trigger-broom-289 commented 7 years ago

With the debug on:

2017-03-11T22:49:37: Client 0: read newSwitchVector Aldi Roof CONNECTION CONNECT='On' 2017-03-11T22:49:37: Driver indi_aldiroof: queuing responsible for 2017-03-11T22:49:37: Driver indi_aldiroof: sending msg copy 1 nq 1:

On

2017-03-11T22:49:37: Driver indi_aldiroof: read message Aldi Roof 'Attempting connection /dev/ttyACM0' 2017-03-11T22:49:37: Client 0: queuing 2017-03-11T22:49:37: Client 0: sending msg copy 1 nq 1:

2017-03-11T22:49:37: Driver indi_aldiroof: read message Aldi Roof 'ARDUINO BOARD INCOMPATABLE FIRMWARE.' 2017-03-11T22:49:37: Client 0: queuing 2017-03-11T22:49:37: Client 0: sending msg copy 1 nq 1:

2017-03-11T22:49:37: Driver indi_aldiroof: read message Aldi Roof 'FIRMATA VERSION:sketch_mar11a.ino-2.5' 2017-03-11T22:49:37: Client 0: queuing 2017-03-11T22:49:37: Client 0: sending msg copy 1 nq 1:

2017-03-11T22:49:37: Driver indi_aldiroof: read setSwitchVector Aldi Roof CONNECTION Alert CONNECT='Off' DISCONNECT='On' 2017-03-11T22:49:37: Client 0: queuing 2017-03-11T22:49:37: Client 0: sending msg copy 1 nq 1:

Off On
Trigger-broom-289 commented 7 years ago

I found the issue, the sketch HAS to be named SimpleDigitalFirmataRoofController.ino and not something else to work.

all good, I can connect now.

2017-03-11T22:59:31: Client 0: read newSwitchVector Aldi Roof CONNECTION CONNECT='On' 2017-03-11T22:59:31: Driver indi_aldiroof: queuing responsible for 2017-03-11T22:59:31: Driver indi_aldiroof: sending msg copy 1 nq 1:

On

2017-03-11T22:59:32: Driver indi_aldiroof: read setSwitchVector Aldi Roof CONNECTION Ok CONNECT='On' DISCONNECT='Off' 2017-03-11T22:59:32: Client 0: queuing 2017-03-11T22:59:32: Client 0: sending msg copy 1 nq 1:

On Off
dokeeffe commented 7 years ago

Good, sorry I didnt see it on time... Yes, firmata seems to give it a firmware name property based on the file name. I got caught once with the same problem