Chirayu
2007-11-06 15:11:09 UTC
Hi
I am using the LIN API library nicanmsc.lib and Nican.h file to work with the MFC application that I am writing in Visual C++ 6.0.
The problem i am encounter with one the API of Nican.h called "ncWrite(NCTYPE_OBJH ObjHandle, NCTYPE_UINT32 SizeofData, NCTYPE_ANY_P Data)"
As this API is used to configure the LIN Interface Slave task to configure or subscribe the data.To do that you have to have frame type is response Entry frame and one of Data Type called "Is Remote " value equal to 16. Now I am doing exactly same things to achieve configure response entry frame to send data from slave based on the ID from master. As I am able to run this API from my application and its executing correctly and sending correct information that I want to send to Master but the problem I am seeing is that when you execute any of this API it comes with STATUS back of the execution part went correctly on not based on the value that it returns. In my case eventhough the command looks to me executed correctly as sending the correct data but the STATUS comes with negative value which means it has something wrong in it. I can't figure out the problem in here.
Let me know if you any body encounter this kind of problem before. I described you the best way i can describe the problem but if any body has more question feel free to ask it.
Thanks
Chirayu
I am using the LIN API library nicanmsc.lib and Nican.h file to work with the MFC application that I am writing in Visual C++ 6.0.
The problem i am encounter with one the API of Nican.h called "ncWrite(NCTYPE_OBJH ObjHandle, NCTYPE_UINT32 SizeofData, NCTYPE_ANY_P Data)"
As this API is used to configure the LIN Interface Slave task to configure or subscribe the data.To do that you have to have frame type is response Entry frame and one of Data Type called "Is Remote " value equal to 16. Now I am doing exactly same things to achieve configure response entry frame to send data from slave based on the ID from master. As I am able to run this API from my application and its executing correctly and sending correct information that I want to send to Master but the problem I am seeing is that when you execute any of this API it comes with STATUS back of the execution part went correctly on not based on the value that it returns. In my case eventhough the command looks to me executed correctly as sending the correct data but the STATUS comes with negative value which means it has something wrong in it. I can't figure out the problem in here.
Let me know if you any body encounter this kind of problem before. I described you the best way i can describe the problem but if any body has more question feel free to ask it.
Thanks
Chirayu