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!
#Arduino/mobiflight error
1 messages Β· Page 1 of 1 (latest)
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?
They are connected with 2*7 USB hub
Not powered USB hubs
try changing the usb ports used
Ok, I'll try thanks
unplug everything and replug one by one
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.
Ok thank you very much ππ
I'll tell you soon, I bought on internet a powered cable for the USB hub
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
You have a duplicate serial number on the board on com10. Connect that board alone and regerate the serial number in Mobiflight Modules.
Ok thanks it works!!!! β₯οΈ
Are all 12 boards now working OK?
You will need to assign the old serial number devices to the new serial number
I have another issue with another card, so Im going to tell you in 1 sec
IT WORKS
Thank you very much ππ
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?
I think the issue was more the duplicate serial number than the underpowered arduinos.
Thank you very much for helping me, it works perfectly now.
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.
π
This is changed with FW version 2.4.0 (using UniqueID) and again changed with 2.4.1. (don't use analog input for starting point of random numbers).
@paper crow which FW version do you have on these both boards which had the same serial number?
I was under the impression the new method of obtaining serial numbers had been rolled back to the old method. Not the case then?
@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.
We rolled back to use the serial number, but starting point for the random generator is time depending and not anymore analogIn.
I remember getting these crazy huge serial numbers with 20 characters. Another idea, if MFConnector loads the firmware and receives back a duplicate serial, since it is an obvious undesirable result, just auto regenerate the serial at that point.
Maybe I am trying to find solutions to a non-existing problem anymore.
Should be very seldom or not existing anymore.
That's why I am interested in the firmware version used by @paper crow
Hi, i will check it out later. Thx.
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