|
Hi,
I am trying to implement the sending and receiving of consecutive frames from ECU using CAN Bus using VC++.
The idea is to send the following frames
TX 02 1A 00 00 00 00 00 00
RX 10 08 2F 63 08 07 80 00
TX 30 00 00 00 00 00 00 00 (flow control frame)
RX 21 FF FF 00 00 00 00 00 (consecutive frames 1)
RX 22 xx xx xx xx xx xx xx (consecutive frames 2)
RX 23 xx xx xx xx xx xx xx (consecutive frames 3)
(i have to wait untill i recieve all the consecutive frames and then send the next request)
TX...
RX...
The problem i am facing is that the timeout is happening because of which i am not receiving the consecutive frames at all (acc. to my assumption). Also the flow control frame is to be sent within 5 ms. I am finding a problem here too.
Can you please help me finding a solution to the following:
1. How to send a flow control frame within such less time? I used timers also but this doesnt work.
2. I have to recieve all the consecutive frames and thus i have to wait till all the frames are received. How can i achieve this?
Please help me with this.
Await for ur reply at the earliest.
Sunayana
|
|
|
|
|
how to change maximum count of recent files?
default cout is 4?
|
|
|
|
|
Where? Visual studio? What version?
John
|
|
|
|
|
For VC 6, its at Tools-->Options-->WorkSpace .
For VS2k5, Tools-->Options-->EnvironMent-->General .
|
|
|
|
|
I mean, for my MDI app, not foe visual studio.
|
|
|
|
|
includeh10 wrote: not foe visual studio.
Always be clear while asking questions .
Locate LoadStdProfileSettings in InitInstance .
Pass no. that you want to keep as most recently used file as parameter.
i.e. if want 5 files , then LoadStdProfileSettings(5) .
|
|
|
|
|
how to enumerate MDI child windows?
|
|
|
|
|
|
can anybody help me to give simple steps to call "com dll function"....thank you
|
|
|
|
|
many many examples in VC samples
dynamic (by load library) and static (by pointer)
|
|
|
|
|
|
On google, it's called EXIF information, I ever tried to use CXImage to read the EXIF info that's ok.
But CXImage doesn't support write EXIF info into jpeg file.
Someone could give me any ideas?
|
|
|
|
|
Best give me a source code
dddsdfdd
|
|
|
|
|
Has anyone gotten this to work, I a have a simple project DLL using MFC no .rc files, I have defined _USE_RTM_VERSION for all source files, but when I compile I see two entries in the embedded manifest file, and it refuses to load in depends, and I get SxS errors.
How do you uninstall SP1, there is no entry in add/remove programs, VS2005 repair does not do it.....
|
|
|
|
|
see if this helps you out with the _USE_RTM_VERSION problem.
I think that if you want to uninstall VS2005 SP1, you have to re-install VS. I am not sure about that but thatis the only thing I can think of ...
|
|
|
|
|
Chocolate fire guard, I have googled this already before posting this Q....nothing for it uninstall and reinstall.
|
|
|
|
|
Hi all,
I want to add gui(MFC based) into a lib code.....so for that i followed the following steps
1) Created a new windows based console application with option static lib file selected n by allowing MFC support to the application
2) from the project add....i selected add resource n then created a CDialog based gui into it
Upto then everything is fine.....now here something i dont understand
1) wat r the .h and .cpp files related to gui do i need to include n wat code to write in (MFC generates all the code itself in a MFC based application so i m not sure wat to include or wat not to include)
2)I am able to link to lib in my program (proc) without error.....Now how do i invoke the gui in lib from my proc
I am taking commandline arguement from the user.....if user says enable gui as arguement....then gui shud pop up or else it shud not pop up
How do i achieve it.....
Kunal
|
|
|
|
|
|
This[^] may help, but you'll get better answers in a more programming oriented forum. This one, Visual C++[^] or this one, Visual Studio 2005[^], perhaps.
"DLL Hell" is dead, long live "DLL Hell".
Chris Meech
I am Canadian. [heard in a local bar]
I agree with you that my argument is useless. [Red Stateler]
Hey, I am part of a special bread, we are called smart people [Captain See Sharp]
The zen of the soapbox is hard to attain...[Jörgen Sigvardsson]
I wish I could remember what it was like to only have a short term memory.[David Kentley]
|
|
|
|
|
The reason you got a lot of '1' votes is that you posted in the lounge, despite the big, red text, asking you not to. I've moved the question to the right place.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
My question is:
I have a program that connects to a remote server through a certain port.
I want to make a program which will be like a buffer between the program and the remote server so i can see all traffic going between them both and filter data i dont want the program to recieve.
I dont know how to that, how can i listen to the port and grab it when the program try to connect ? how can i complete the connection after my program manages to grab the port ?
thank you.
|
|
|
|
|
Do you have the source code for the program? If so, you know the protocol(s) the app is
communicating with so you can write a filter app that listens on an arbitrary port. When you
connect to the filter app, the filter app can connect to the remote server. The filter app needs
to forward all data it receives in both directions.
If you don't know the protocols used, there's a handy, free, packet capture library libpcap[^]
that may be helpful.
|
|
|
|
|
I dont have the programs source code.
Libcap can also drop packets before they rech the client ?
|
|
|
|
|
Kobi_Z wrote: Libcap can also drop packets before they rech the client ?
Probably not but there's lots of clues in their documentation how they get at the underlying
protocol layer.
|
|
|
|