Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   why does it say"IFI>"? (http://www.chiefdelphi.com/forums/showthread.php?t=42436)

incognito_NICK 22-01-2006 15:52

why does it say"IFI>"?
 
I have loaded the camera code from Kevin into our RC. But, the problem is when we try to get it to run, the terminal window only displays "IFI>". And then camera tilts down.

What does this mean?

iBheat 22-01-2006 15:56

Re: why does it say"IFI>"?
 
Which version of Kevin's code did you load?

Kevin Watson 22-01-2006 16:10

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by incognito_NICK
I have loaded the camera code from Kevin into our RC. But, the problem is when we try to get it to run, the terminal window only displays "IFI>". And then camera tilts down.

What does this mean?

Does the program light stay orange?

-Kevin

Joel J 22-01-2006 20:57

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by Kevin Watson
Does the program light stay orange?

-Kevin

It probably does stay orange. I used to get that "IFI>" when I had a "partial" code error.

printf("IFI 2006 User Processor Initialized ...\r"); /* Optional - Print initialization message. */

^-- That's the line that didn't print completely..

6600gt 22-01-2006 21:10

Re: why does it say"IFI>"?
 
Don't you need the operator interface connected to run the robot controller.
I think its a safety feature in case of radio loss. Thats probably what it thinks...

JBotAlan 22-01-2006 21:28

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by 6600gt
Don't you need the operator interface connected to run the robot controller.
I think its a safety feature in case of radio loss. Thats probably what it thinks...

Yes, you do need the OI connected somehow, radio or tether. However, the program keeps running once it is started, despite radio failiure. The outputs are shut off, but your code will keep executing, and you will keep seeing serial output (if it is programmed to do so).

As for this:
printf("IFI 2006 User Processor Initialized ...\r"); /* Optional - Print initialization message. */

That line doesn't execute in Kevin's latest camera code. That entire section is commented out, if my memory serves me well. You will get an "IFI>" line back, and I believe that this is the "initialized" message from the camera code. I get it every time I turn on power to the RC, so I don't think it can be a corrupt message or an error. If the CMUcam is working, you will get "Searching..." messages and the contents of the "T" (tracking) packets back from the camera (blob size, confidence, etc.).

If the camera tilts down, there could be a lot of things wrong. First, I've noticed that the cam is sensitive to ground changes. If I discharge static to the chassis of the 'bot, the servos twitch, and stay there. It appears that the servos only move when the output changes, but they "drift" if there is no change in the output...I haven't found a way to counter this yet. Also, this might be due to the servos being plugged into the wrong outputs. Kevin's camera code uses the RC's PWM output 1 for pan, 2 for tilt (I think). Don't plug the servos into the CMUcam's servo outputs. They aren't used here. I'm not sure what else could be wrong, but if you do come across another problem, you can post back here and we'll try our hardest to help.

Good luck, and gosh that was a long post...
JBotAlan

Joel J 22-01-2006 21:38

Re: why does it say"IFI>"?
 
I did assume that's the line the window was printing, so I could easily be wrong about that. However, I saw the "IFI>" message many-a-times during the '05 build, and it would always happen when there was a code error of the red/orange/oscillating-light-of-death variety.

I guess I should just wait for the thread starter to comment.

Alan Anderson 22-01-2006 22:08

Re: why does it say"IFI>"?
 
The "IFI>" prompt is displayed when the master code goes into "program" mode. You'll see it reliably and repeatably when you hold down the program button.

incognito_NICK 22-01-2006 22:09

Re: why does it say"IFI>"?
 
Quote:


As for this:
printf("IFI 2006 User Processor Initialized ...\r"); /* Optional - Print initialization message. */

That line doesn't execute in Kevin's latest camera code. That entire section is commented out, if my memory serves me well. You will get an "IFI>" line back, and I believe that this is the "initialized" message from the camera code. I get it every time I turn on power to the RC, so I don't think it can be a corrupt message or an error. If the CMUcam is working, you will get "Searching..." messages and the contents of the "T" (tracking) packets back from the camera (blob size, confidence, etc.).

I think that this may be my problem because i did recall coming across this line when looking at the code. I didn't change it because I thought thats the way it was suposed to be. So the next time I am at the shop I will be sure to give it a try.

thanks for the help.
-nick

Matt Krass 22-01-2006 23:20

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by Alan Anderson
The "IFI>" prompt is displayed when the master code goes into "program" mode. You'll see it reliably and repeatably when you hold down the program button.

Actually I think it shows that every powerup, I seem to remember using that as an indicator the RC was on when I couldn't see its lights. Perhaps its just my memory being faulty, I will check tomorrow.

Joel J 22-01-2006 23:43

Re: why does it say"IFI>"?
 
I agree with Alan. It shows up when you press the program button.

Eldarion 23-01-2006 02:03

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by Matt Krass
Actually I think it shows that every powerup, I seem to remember using that as an indicator the RC was on when I couldn't see its lights. Perhaps its just my memory being faulty, I will check tomorrow.

I can confirm that it displays on every powerup, but not when you press the reset button. My question is, is there any way to disable it? It confuses something I have connected to the Program port. :ahh:

JBotAlan 23-01-2006 12:07

Re: why does it say"IFI>"?
 
I doubt there is a way to shut off the IFI> prompt. What are you using, connected to the program port, that doesn't like that prompt?

BTW, did you steal my "good rep is always nice" line? :)

Eldarion 23-01-2006 12:51

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by JBotAlan
I doubt there is a way to shut off the IFI> prompt. What are you using, connected to the program port, that doesn't like that prompt?

BTW, did you steal my "good rep is always nice" line? :)

It's a top-secret piece of custom circuitry that will be revealed at competition. :D
Whay I can say about it is that it uses autobaud detection; i.e. it expect the @ sign to be the first thing sent to it on bootup. When it receives the I instead, it calibrates to the wrong baudrate.

And yes, I did "borrow" your line. :)

Alan Anderson 23-01-2006 13:36

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by Eldarion
...it uses autobaud detection; i.e. it expect the @ sign to be the first thing sent to it on bootup. When it receives the I instead, it calibrates to the wrong baudrate.

If you have control of the mystery device's software, the solution is obvious: don't do baud rate detection. If you can't fix it that way, the only simple thing I can think of to try is to add a delay circuit that prevents data from getting through at all until some time after power is applied.

(More complicated possibilities abound, such as putting another custom circuit in the line that sends the @ character before the RC has a chance to foul up the baud rate.)

Eldarion 23-01-2006 14:26

Re: why does it say"IFI>"?
 
Quote:

Originally Posted by Alan Anderson
If you have control of the mystery device's software, the solution is obvious: don't do baud rate detection. If you can't fix it that way, the only simple thing I can think of to try is to add a delay circuit that prevents data from getting through at all until some time after power is applied.

(More complicated possibilities abound, such as putting another custom circuit in the line that sends the @ character before the RC has a chance to foul up the baud rate.)

I've tried for some time to get it to work without baud rate detection, but it's running at an unknown system clock rate, which makes it really hard to fix the baud rate to something like 115200. :)

I was able to fix it by adding a delay of about 1 second, however. Thanks!

htwiz2002 21-02-2007 23:41

Re: why does it say"IFI>"?
 
I believe that the Controller outputs this to indicate it is running (yes I know someone already said that) and that the microprocessor has initialized. (the printf statement is just to say that that part of the code had run...)
On the controller I am using, it shows up on every reset, although not for "programming mode". I believe that it is also meant to indicate to the IFI loader something, because the loader needs the code to be stopped, and program mode allows direct access to the memory?:confused:

I would think that a custom Loader program could explain this, but seeing as there is none around that anybody has had a need to make, I have no further information.

pheadxdll 22-02-2007 08:58

Re: why does it say"IFI>"?
 
When you press and hold the Prog button it diplays IFI> in the console.


All times are GMT -5. The time now is 20:28.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi