windows - HW device via COM port, access individual pins -
I am currently working for this project, in which HW device has been prepared for this purpose.
The device will serve the purpose of sending some data through the serial port (for example, COM1). The data that needs to be sent does not matter.
I already have some knowledge about the Windows serial port communication CreateFile, WriteFile, and so on ... but ...
There is an "engine" on the device, Which sends the data when I ask it, and to do this, I need to send a signal (10101010) to the rate of which the device will show the clock rate of the "engine".
Here's how this device works. It is a signal to send data through a pin. I have to send 0 for the beginning, at the end 1 after this, for this signal Some other pins will look, this is based on the sample, and the frequency of those people and frequencies that I will send, it will start sending the data through the thrill pin.
My question is this:
How can the personal pins of the COM Port be accessed? How do I manage the frequency and I will need to delay myself?
I think that I would have to do more by using the device drivers on the kernel, which must be developed
An easy way. COM port will send a signal of 0 to 0 and 0 if you send only 0xAA bytes.
Comments
Post a Comment