473,597 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Serial COM port driver

Hi All,

I am working on a project regarding the serial COM port. I have to
design my own protocol for the serial communication. In the protocol
there are some bits for Read/Write, address(bank, offset) and data to
be transferred.

Would anybody please tell me where I can find the Serial COM port
driver, especially the driver that provides the funcation calls/APIs
that allow me to call them by using my own protocol? Thanks a lot for
your help.

Feb 1 '06 #1
5 3808
Fiesta wrote:
Hi All,

I am working on a project regarding the serial COM port. I have to
design my own protocol for the serial communication. In the protocol
there are some bits for Read/Write, address(bank, offset) and data to
be transferred.

Would anybody please tell me where I can find the Serial COM port
driver, especially the driver that provides the funcation calls/APIs
that allow me to call them by using my own protocol? Thanks a lot for
your help.

Please read
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Gabriel

--
Who is General Failure and why is he reading my hard disk?
Feb 1 '06 #2
On 31 Jan 2006 23:47:34 -0800, "Fiesta" <hu*******@hotm ail.com> wrote:
I am working on a project regarding the serial COM port. I have to
design my own protocol for the serial communication. In the protocol
there are some bits for Read/Write, address(bank, offset) and data to
be transferred.


I'm not quite sure what you are doing but, the first 31 character
codes of the ASCII character code tables (commonly called the ASCII
Chart) have almost all the codes you would need to make your own
"protocol." Many current com port drivers regonize these codes as
control characters already. (If put in the correct mode.)

Google on:
ASCII character code tables

The first hit was this:
http://www.lookuptables.com/

If this is for WIndows try posting in the newsgroup below and I'll
give you more info if needed.

comp.os.ms-windows.program mer.win32

Good Luck
Feb 1 '06 #3
Thanks for your reply.

Now I am working on a project regarding serial COM port. I defined a
protocol (a command format). The command is either a 4-byte or 3-byte
packet. Inside the command, some bits are used for specifying the
command is a "Read" command or "Write" command, the address for
accessing the data in a target machine (via serial communication),
and the data to write into the target machine.

So now, I am looking for a COM port driver, which can provide me some
function calls/APIs, so I can call these functions or APIs and pass my
commands (defined in my protocol) to the COM port driver functions then
to do read data or write data actions in the target machine. And my
question is where I can find and download this kind of COM port driver.
Thanks a lot again.


I'm not quite sure what you are doing but, the first 31 character
codes of the ASCII character code tables (commonly called the ASCII
Chart) have almost all the codes you would need to make your own
"protocol." Many current com port drivers regonize these codes as
control characters already. (If put in the correct mode.)

Google on:
ASCII character code tables

The first hit was this:
http://www.lookuptables.com/

If this is for WIndows try posting in the newsgroup below and I'll
give you more info if needed.

comp.os.ms-windows.program mer.win32

Good Luck


Feb 1 '06 #4
Thanks for your reply.

Now I am working on a project regarding serial COM port. I defined a
protocol (a command format). The command is either a 4-byte or 3-byte
packet. Inside the command, some bits are used for specifying the
command is a "Read" command or "Write" command, the address for
accessing the data in a target machine (via serial communication),
and the data to write into the target machine.

So now, I am looking for a COM port driver, which can provide me some
function calls/APIs, so I can call these functions or APIs and pass my
commands (defined in my protocol) to the COM port driver functions then
to do read data or write data actions in the target machine. And my
question is where I can find and download this kind of COM port driver.
Thanks a lot again.


I'm not quite sure what you are doing but, the first 31 character
codes of the ASCII character code tables (commonly called the ASCII
Chart) have almost all the codes you would need to make your own
"protocol." Many current com port drivers regonize these codes as
control characters already. (If put in the correct mode.)

Google on:
ASCII character code tables

The first hit was this:
http://www.lookuptables.com/

If this is for WIndows try posting in the newsgroup below and I'll
give you more info if needed.

comp.os.ms-windows.program mer.win32

Good Luck


Feb 1 '06 #5
Please don't top-post. Rearranged.

Fiesta wrote:
I'm not quite sure what you are doing but, the first 31 character
codes of the ASCII character code tables (commonly called the ASCII
Chart) have almost all the codes you would need to make your own
"protocol." Many current com port drivers regonize these codes as
control characters already. (If put in the correct mode.)

Google on:
ASCII character code tables

The first hit was this:
http://www.lookuptables.com/

If this is for WIndows try posting in the newsgroup below and I'll
give you more info if needed.

comp.os.ms-windows.program mer.win32

Good Luck

Thanks for your reply.

Now I am working on a project regarding serial COM port. I defined a
protocol (a command format). The command is either a 4-byte or 3-byte
packet. Inside the command, some bits are used for specifying the
command is a "Read" command or "Write" command, the address for
accessing the data in a target machine (via serial communication),
and the data to write into the target machine.

So now, I am looking for a COM port driver, which can provide me some
function calls/APIs, so I can call these functions or APIs and pass my
commands (defined in my protocol) to the COM port driver functions then
to do read data or write data actions in the target machine. And my
question is where I can find and download this kind of COM port driver.
Thanks a lot again.


Standard C++ knows nothing about serial ports so your question is
off-topic in this newsgroup. Whatever solution you eventually use will
involve a platform specific API.

JustBoo has already suggested an appropriate group and offered to help
if you are programming for Windows. If you are programming for some
other platform you will need to ask a group catering to that platform.

Gavin Deane

Feb 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2563
by: dalewz | last post by:
Hi, Could sb kindly answer my following questions: Plan: I am trying to find a language to build a GUI to communicate with our device via serial port. Questions: 1. which language (VC++ or Java) is the best?
2
1915
by: badsha | last post by:
Hello, If I try to set com port to baud rate higher than 115200pbs using SetCommState() API, it returns with an error. The error code is 87 which means INVALID_PARAMETER. I tried using 128000 bps and 256000 bps. These rates are valid in deed. If you can, please let me know what I should do? -- Badsha
1
1756
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different hardware devices simultaneaously. When I run the program on a desktop running Windows 2000 it works fine. When I run it on a Laptop using XP I start having problems. It seems that when the ports are initiated, either one will work but not the
15
8182
by: xkenneth | last post by:
Hi, I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the transactions occur? I'm trying to reverse engineer a microcontroller serial routine and I'd like to see any response the chip sends back. Regards, Ken
0
1296
by: alnsaisrinivas | last post by:
Hi I've a problem with I/O blocking on my serial port at this particular scenario... 1.I've developed a driver to communicate with some device using Serial Comm (overlapped I/O). 2.I'm able to send and receive messages perfectly. 3.As part of integration few more drivers also exist inorder to communicate with different devices. 4.I'm getting I/O blocking and application hangs up for my driver, when a particular driver is invoked before...
5
9483
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting to opening the Serial Port and catching the associated exception? Thanks If there isn't a way to determine the Serial Port within .NET I would be willing, I guess, to use a WinAPI is that was the only way.
13
6185
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I am sending a short message to a group of embedded boxes daisy chained via the serial port. When I send a 'global' message, all the connected units should reply with their Id and Ack in this format '0 Ack' To be certain that I didn't miss a...
4
11706
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when you open a serial port. This is not what I want to do. I need to change the timeout each time I do a "read" on the serial port, depending on which part of the protocol I've got to. Sometimes a return character is expected within half a second,...
2
7017
by: Paul Sijben | last post by:
To automate/ease configuration in my app I am trying to find out to which serial port a certain bluetooth device is connected. With pybluez I can find out which bluetooth devices I have, but it will not tell me the serial port they are mapped to. Is there a way to figure this out from python? (I am insterested in the platforms WinXP and linux primarily) Paul Sijben
0
7894
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8262
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6706
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3893
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
1245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.