oliver_mpt
11-24-2008, 12:58 PM
Hello,
I have located a bug in the IOCARD USB expansion card, and posted it on the Opencockpit forum. However, I have never been really successful on that forum which is not really reactive. So I repost my message here, so maybe the bug may come to the ear of the designer in the end (I don't have his email).
Just trying to help ...
Here is my post :
Hello All
I have had a problem that inputs are not properly detected at startup. As far as I can analyze, it comes from the code inside the PIC 16C745 on the USB card.
As an example, I have two master cards and the following inputs ON at startup :
05-17-23-32-42-53-69-78-86-107-113-132-143.
here is what SIOC or Controlador see at startup :
05-17-23-32-42-44-69-78-86-113-132
NOW, this is info for the card designers :
I analyzed the packets sent by the USB expansion card to the PC at startup to describe the inputs activated :
03 BF DB 20 00 20 20 40
80 00 40 40 20 00 20 40
80 00 12 00 .......
As you can see, all is correct except the 12 00 sequence which corresponds to the 9th inputs of all groups on the 2 cards, and is not correct ! The correct values should be 44 11
The PIC chip incorrectly read the 9th inputs of each group (inputs 08 - 17 - 26 - 35 - 44 - 53 - 62 - 71 - 80 - 89 - 98 - 107 - 116 - 125 - 134 - 143 - ... etc ...)
at startup.
Controlador correctly displays what is reported by the PIC chip, so there's no problem with him.
Please use this info for debugging the PIC 16C745 program
Best regards
Oliver
I have located a bug in the IOCARD USB expansion card, and posted it on the Opencockpit forum. However, I have never been really successful on that forum which is not really reactive. So I repost my message here, so maybe the bug may come to the ear of the designer in the end (I don't have his email).
Just trying to help ...
Here is my post :
Hello All
I have had a problem that inputs are not properly detected at startup. As far as I can analyze, it comes from the code inside the PIC 16C745 on the USB card.
As an example, I have two master cards and the following inputs ON at startup :
05-17-23-32-42-53-69-78-86-107-113-132-143.
here is what SIOC or Controlador see at startup :
05-17-23-32-42-44-69-78-86-113-132
NOW, this is info for the card designers :
I analyzed the packets sent by the USB expansion card to the PC at startup to describe the inputs activated :
03 BF DB 20 00 20 20 40
80 00 40 40 20 00 20 40
80 00 12 00 .......
As you can see, all is correct except the 12 00 sequence which corresponds to the 9th inputs of all groups on the 2 cards, and is not correct ! The correct values should be 44 11
The PIC chip incorrectly read the 9th inputs of each group (inputs 08 - 17 - 26 - 35 - 44 - 53 - 62 - 71 - 80 - 89 - 98 - 107 - 116 - 125 - 134 - 143 - ... etc ...)
at startup.
Controlador correctly displays what is reported by the PIC chip, so there's no problem with him.
Please use this info for debugging the PIC 16C745 program
Best regards
Oliver