![]() Printf("\n Port %s Opened\n ", ComPortName) ![]() Printf("\n Error! - Port %s can't be opened", ComPortName) OPEN_EXISTING, // Open existing port only GENERIC_READ | GENERIC_WRITE, // Read/Write Access HComm = CreateFile(ComPortName, // Name of the Port to be Opened Printf("\n | Serial Communication (Win32 API) |") Unsigned char TempChar // Temperory CharacterĬhar SerialBuffer // Buffer Containing Rxed DataĭWORD NoBytesRead // Bytes read by ReadFile() HANDLE hComm // Handle to the Serial portĬhar ComPortName = "\\\\.\\COM6" // Name of the Serial port(May Change) to be opened,ĭWORD dwEventMask // Event mask to trigger It is reading but not sending the hex output. ![]() I am getting some garbage values in the hyperterminal output. ![]() I want to send hex values and get the output as hex in the hyper terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |