Multimodule problems.

More
26 Dec 2014 19:41 #27240 by mwm
Multimodule problems. was created by mwm
I was having issues with the MM not being detected, as described by btoschi on the CC2500 thread . It had only been happening at power on, so I ignored it until it happened while a model was in flight, dropping it from the sky (a V911 which took no damage).

So I took the MM out, removed the connectors, and shortened the wires. Plugged it in, and got the "Missing module" message for the A7105, etc. Plugged those in. Got a "Missing module" message for the multimodule.

I did the obvious checks: connectivity over the wires, shorts, and that I get 3.3volts. Everything seems ok.

Since I don't have anything I really want to fly with MM modules at this point(*), I put it off, and disabled the MM in hardware.ini. I still get the "Missing module" message for the MM.

I got a logic analyzer for some other work, but have no idea what I'm doing with it. Can someone point me to what I should hook up and the appropriate settings for to capture meaningful data? And maybe what to look for?

*) I've got some older A7105 models that don't fly very often, one waiting on parts from china. I added the nrf24l01 for SLT compatibility but haven't ordered one yet, the CC2500 for frsky stuff but really need sebydocky's telemetry fixes with some of my code as well.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

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

More
27 Dec 2014 04:08 #27263 by hexfet
Replied by hexfet on topic Multimodule problems.
Ran across a little bug the other day that may apply. If the MM is disabled, but another enabled module is not found, then the MM is also reported as missing. And on the 10 (and I presume the 7) the string is so long that missing multimodule is what's left on the display.

If you're using a 7e or 10, try this patch and see if a specific missing module is displayed.
diff -r 06678d157bcf src/protocol/protocol.c
--- a/src/protocol/protocol.c	Fri Dec 26 19:29:39 2014 -0500
+++ b/src/protocol/protocol.c	Fri Dec 26 22:59:39 2014 -0500
@@ -445,8 +445,9 @@
         }
     }
     //Put this last because the switch will not respond until after it has been initialized
-    if (PROTOCOL_SetSwitch(TX_MODULE_LAST) == 0) {
+    if (Transmitter.module_enable[MULTIMOD].port && PROTOCOL_SetSwitch(TX_MODULE_LAST) == 0) {
         //No Switch found
+        error = 1;
         missing[MULTIMOD] = MODULE_NAME[MULTIMOD];
     }
     Model.protocol = orig_proto;

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

More
27 Dec 2014 20:01 #27272 by mwm
Replied by mwm on topic Multimodule problems.
Well, that did clarify the problem. I had all the modules disabled, and now I get a "Missing module CYRF6936. So I guess the next step is to take out the multimodule completely and see if that cleans things up.

Thanks!

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

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

More
23 Jan 2015 23:31 #27953 by mwm
Replied by mwm on topic Multimodule problems.
I just noticed that this change doesn't seem to be in the team build.

Any chance you can add it? Would you like me to?

Anything else we've missed?

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

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

More
24 Jan 2015 00:46 #27954 by hexfet
Replied by hexfet on topic Multimodule problems.
Feel free to add it. I lost the local change to disk issues before I had a chance to commit.

Not sure it's the best fix because PROTOCOL_SetSwitch() also checks if the multimodule is enabled. Didn't remove check that in case it's needed in other cases, but it seems to me the check for module enabled should be separate from an error return from that function.

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

More
24 Jan 2015 03:28 #27955 by mwm
Replied by mwm on topic Multimodule problems.
Pull request created. Still waiting to get that other approval.

While it may not be the best, it's clearly better than what we have no, so I'm all for doing either as is or without the extra test.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

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

Time to create page: 0.031 seconds
Powered by Kunena Forum