Mingw serial port use xp example


















Can you please show how? Thanks a lot! Hello pkout, the simplest way would be to use the Stingvariable as buffer. The array can then also be used as the buffer value to transmit the string over the serial port.

Thanks for the quick response! I assume reading out into the buffer would be done by defining a variable:. I think I must be missing something. My response variable always contains null after calling the readFromSerialPort function even though I should be getting a response. Can you please check if I am defining the response variable correctly? Thank you so much! I tested it and I am still getting 0 bytes in response.

I will check my connection settings and let you know if I get it to work. Thanks for your help! I did not say or imply that it isn't, merely that we're not able to evaluate it in this newsgroup. I'll try to pay more attention to that.

Why the hell do we have to keep re-hashing this argument? Because some people are too stupid to get it first time round, or second time round, or third time round, or fourth time round, or fifth time round, or sixth time round, or sev Mark McIntyre.

On 1 Sep , in comp. He did not do that either except in the imagination of those whose pride suffers no criticism. He pointed out that there is no useful peer review of your comment here, so nobody can say whether you're right or wrong, and that a Windwos group would be a better place to check.

You might want to consider the diplomatic service as a career, you're never going to make it as a fuckwit. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. I disagree with you Heathfield. If that means for you that I am stupid just know that only people whose words I find important can insult me :- Others, are just like dogs that bark at me when I pass Have a nice day.

I'm well aware of that. If that means for you that I am stupid No, I don't automatically think people are stupid for disagreeing with me. After all, I am occasionally wrong. OK, In that case I retire my words. Excuse me. Keith Thompson wrote: My goals are to keep this newsgroup as useful as possible for those of us who want to discuss the C programming language, and to help people who ask questions here get the best possible answers.

Being that it seems about half of the posts I see on comp lang c are posts saying that the OP is off topic, I don't see how useful it actually is. I just think it's a way a couple people have of making themselves feel big. Well gosh golly gee darn it - looks like I ruined your precious ol newsgroup by providing an answer instead of telling somebody how he is OT. I'm so terribly sorry. You implied I didn't know what I was talking about by saying he should look elsewhere for the correct answer.

Don't try to act innocent. I already gave him his solution, actually. You just told him to F off from your precious newgroup. I do pay attention to this newsgroup - and like I said, way too many posts here are "google it" or "post in xyz group" or "what part of 'comp.

Actually - I'm pretty sure you're the one that implied that I don't know what I'm talking about. I'm pretty sure that's the advice I gave you already.

Is this one of those games little kids play when they repeat what everybody else says just to be annoying? I encourage you to re-read my advice. This is my last post in this thread that is not on the topic of accessing the serial port from within C.

I, unlike the rest of you, am actually interested in helping people. I use newsgroups to seek help with my problems - and when I see people having problems that I know the solution to, I offer my help. I would encourage you all to do the same, instead of this trivial and pitiful bickering yall are resorting to. If anybody has more questions about serial programming from within Windows - feel free to ask me - just a couple weeks ago I had to get overlapped serial communication working in a Windows program.

Hi Jacob - I used that page as a starting point for getting serial comms working. You can pretty much just copy and paste the code and have a working application. It is a fantastic guide, IMHO. It doesn't cover overlapped communication - but that is an order of magnitude more complicated and beyond what most people need. That's not an ideal situation, but it sure beats the situation we'd have if we didn't remind people of the topic of this newsgroup - i. It isn't.

Just because you don't understand the reasons for people's behaviour, that doesn't mean that their behaviour is selfish or malign. It could just be that they have excellent reasons for saying what they say - and that is the case here. No, he didn't. For all he knows, you might be the principal designer of Windows XP - or you might be the janitor at Stumpy's Fruit Emporium. You may be an expert, or just a convincing-sounding nutcase. He has no way of knowing which.

Stop trying to impute guilt where there is none. If you have the best interests of the OP at heart, you, too, will want him to use a newsgroup where he can be sure of high-quality advice that is peer-reviewed by acknowledged experts in the field. God, is this guy an idiot! Default User. As do we all; we frequently offer to answer a question in the appropriate newsgroup. Keith himself sometimes says "This is offtopic here but ontopic in comp. The difference between you and them is that they would rather a question be answered by a group of experts in a field.

So you feel that it's fine for me to re-post my explanation of "how to change a cambelt" from alt Well Done! After the first one the smart programmer generally learns the error of their ways and writes it properly the next time. Send flames to root localhost real email: lelanthran at gmail dot com website : www. Of course he was, just not here, thats all. I'd like to politely advise against ratifying responses that are this far off-topic.

As one of the regs here, you already know why posters are redirected to appropriate groups[1]. Hell, I remember when you first came here[2] and got dejected at the responses IIRC, you could not understand why no one was more supportive of your project , but you still stayed at least fairly on-topic.

There is a need to call into question the knowledge of those that try to help the OP. Everybody who posts on topic here, gets corrected once in while. Why should somebody posting off topic, be assumed to be correct? New Post. Follow Post Reply. So I guess my question had a fundamental error of not understanding what mingw is meant to do.

I wonder now if somebody knows of any good LGPL-licensed cross-platform libary to access the serial port, with both a windows and linux ports. My idea is to develop an application using the serial port that can be compiled in both linux and windows using GCC, which of course I can't achieve by using windows' API.

Hi, I'm in the same situation, used termios interface in linux and now I must port the code to be used in win also. Can you help me with something? Thanks for the attention. Post Reply. QSerialPort is the base class of the module and provides a set of basic methods and properties to access resources on serial ports.

QSerialPortInfo is a helper class. It provides information on the available serial ports on the system. You should clone from the official mirror and track changes from there in order to keep the load on Gerrit down. To take the version for Qt4 it is necessary to do [1] :. There are two simple methods to compile and install library using the command line or the QtCreator.

Note: Perl is required only in the case of Qt5, see here.



0コメント

  • 1000 / 1000