Press question mark to learn the rest of the keyboard shortcuts Log in sign up User account menu 3 Question Is there a free component for Serial Port (COM) communication I want to use it in Firemonkey (XE5 or XE6).Still maintained.Original Poster 1 point 6 years ago Thanks for the reply.
Delphi Xe5 Serial Communication Port Free Component ForI was using this component when I was working with Delphi 7, but now, with Delphi XE5 I cant even compile it. I will give it a try though. Thanks. level 1 3 points 6 years ago edited 6 years ago I once looked up how to make CreateFile(PChar(.COMIntToStr()),,,OPENEXISTING) work, and have never looked back since. I even use it on USB (getting the port name from QueryDosDevice) Dont know if thatll work with FireMonkey, though. View entire discussion ( 5 comments) More posts from the delphi community Continue browsing in rdelphi rdelphi This is the subreddit for Borland Codegear Embarcadero Delphi and related languages such as Freepascal and Oyxgene. Members 21 Online Created Jun 20, 2008 Join help Reddit App Reddit coins Reddit premium Reddit gifts about careers press advertise blog Terms Content policy Privacy policy Mod policy Reddit Inc 2020. All rights reserved Back to top. If something else is sent, the slave will reply with I saw something other than an f. (The reply will be displayed as the caption of a label on the Delphi programs form.). It is also something Ive put of wrestling with for a long time. In April of 2010, I attacked the same project again, but by then the external device I wanted to work with was the wonderful inexpensive, programmer friendly, Arduino microprocessor. Delphi Xe5 Serial Communication Port Serial Cable FromI would advise you to go to the newer tutorial about talking to things over a serial cable from a Windows computer. If that doesnt tell you everything you want to know, or if it leaves you feeling that youve nearly got it, perhaps then come back here and skim whats below to see if reading a second explanation of, mostly, the same things helps. I wanted to be able to communicate with a nice little PIC based microcontroller called the Pascalite. You can learn more about that (theres a free compiler and hardware simulator) in my Pascalite pages. He himself credited the old,1410,16400,00.html Borlands FAQ 16400 as the inspiration and source of what he posted. Peter has written a number of articles, components and applications, all of which can be found on his web page. Yet). ![]() If a second byte of data is received before the first has been processed, the first is lost. Happily, the filling of the buffer is done by an interrupt-triggered routine. The Pascalite can be doing something else at the moment the bytes bits begin to arrive. Furthermore, the RS232NewByte allows the PAscalite to know if there is an unused byte waiting in the buffer for processing. The Plus has a 32byte buffer). Delphi Xe5 Serial Communication Port Software What CanIn our simple approach to serial communication over the comm port, were going to have to do in software what can be done in hardware with more sophisticated solutions. There are lots of ways to overcome the problems inherent in that situation, which Ill try to discuss later, but for now: lets get the essentials working. In respect of connecting a Pascalite to a Windows machine, these issues are discussed at my Pascalite RS232 tutorial. For the rest of you, I will point out that the program I am going to develop here does not have parameter setting routines. Set up your Windows comm port via the Settings System Settings Device manager. Note in particular that you should select no handshaking, not RTSCTS, not XONXOFF. When you click the button, the machine the Delphi program is running in sends a phrase to the other machine via the RS-232. I used the power of Delphi to add a button to the form, and to generate the shell of Button1Click. This disagrees with Borlands FAQ answer, but agrees with something in the other source I mentioned. The slave (a Pascalite in my case) will wait on the big machine, and speak after it is spoken to. If something else is sent, the slave will reply with I saw something other than an f. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |