#Arduino/mobiflight error

1 messages Β· Page 1 of 1 (latest)

fast light
#

Hi ! I have a problem with mobiflight or the arduinos, when I plug in my 12 arduinos cards, some don't work (detected but I can't add/see input/output, they are unusable), if I remove some, the ones that don't work work. out of the 12, 8 are powered by an external power supply and therefore 4 via the USB cable. have you ever had this problem and if so how did you manage to solve it? Thank you very much!

pearl dagger
#

can arduino IDE detect all 12? I would suspect maybe Windows is assigning the same com port to more than one arduino. Check for that.
Are these connected to a powered usb hub?

fast light
#

Not powered USB hubs

pearl dagger
#

try changing the usb ports used

fast light
#

Ok, I'll try thanks

pearl dagger
#

unplug everything and replug one by one

fast light
#

πŸ‘

#

If the issue comes from the USB hub, what would you recommend?

pearl dagger
#

did you say they are connected to a 14 port (2*7) unpowered hub?

#

if so, I would recommend getting a new powered hub

#

ohh now I understand 2 hubs x 7 ports each

#

I strongly recommend using powered hubs

#

unpowered hubs have to share the measly 500mA from a single USB port among all the ports, in this case 7

#

a powered hub will give you 500mA for each usb port.

fast light
fast light
#

I'll tell you soon, I bought on internet a powered cable for the USB hub

fast light
#

Hi @pearl dagger i plugged a new powered cable to the USB hub, and the issue is still here.

#

The right USB connector is for the USB hub (all the overhead panel) and the left USB connector is for the panel which doesn't work.

#

And I have this error

#

I think they are the same card but I don't understand why

pearl dagger
#

You have a duplicate serial number on the board on com10. Connect that board alone and regerate the serial number in Mobiflight Modules.

fast light
#

Ok thanks it works!!!! β™₯️

pearl dagger
#

Are all 12 boards now working OK?

#

You will need to assign the old serial number devices to the new serial number

fast light
#

I have another issue with another card, so Im going to tell you in 1 sec

fast light
#

IT WORKS

fast light
pearl dagger
#

So to be clear, your issue was not low power to usb hubs but a duplicate serial number which kept one mega board from being accepted by Mobiflight?

fast light
#

I think the issue was more the duplicate serial number than the underpowered arduinos.

fast light
paper crow
pearl dagger
# paper crow Hi, what causes this duplicate serial number?

As far as I understand the issue, the cause of duplicate serial numbers is having a latching switch connected on pin A0. Mobiflight firmware uses this pin to generate the random numbers necessary for the board serial number. If the pin is grounded, the serial number generated at this time is not random.

glacial pecan
pearl dagger
#

@glacial pecan I am thinking that since MFConnector does detect duplicate serials, why not notify the user, instead of generating an internal error message and not accepting the board. The user can then regenerate the serial and correct the anomaly.

glacial pecan
pearl dagger
glacial pecan
#

Should be very seldom or not existing anymore.
That's why I am interested in the firmware version used by @paper crow

paper crow
proud flume
#

Duplicate serial can also happen if your computer for some reason assigns two arduinos to the same COM port (see in device manager) - sometimes with usb hubs and many arduinos confuse Windows and you get two arduinos that are using the same COM port number