Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. COM in c# [modified]

COM in c# [modified]

Scheduled Pinned Locked Moved C#
csharpcom
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dromar
    wrote on last edited by
    #1

    Hi! Need somexamples how I can make a COM comunication over USB. Or maybe some basic documantation about USB- comunication in C#.

    modified on Monday, December 10, 2007 7:04:00 PM

    L 1 Reply Last reply
    0
    • D Dromar

      Hi! Need somexamples how I can make a COM comunication over USB. Or maybe some basic documantation about USB- comunication in C#.

      modified on Monday, December 10, 2007 7:04:00 PM

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      When I bought my USB-to-serial cable, it came with a CD-ROM containing a driver. When I installed it, it turned the port into a regular serial port, so it shows up in all serial port enumerations, and most/all serial apps can use it, whether HyperTerminal or some .NET based app using SerialPort class. The app never is aware the USB-based serial port is connected in a different manner, all the nasty details are hidden by Windows and the device drivers. BTW: there are minor differences between such a USB-to-serial cable and a regular serial port, mainly in timing; it is not able to achieve very high speed in toggling the control lines, which for most applications is irrelevant; if however the attached hardware requires very short pulses on say the DTR/DSR/RTS pins, the motherboard- based serial port might be able to deliver and the USB-to-serial might not, due to the fact USB communication requires data packets, which must be transmitted and interpreted, whereas a direct port is much "closer" to the CPU. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Sorry for any delays in replying, I currently don't always get e-mail notifications.


      J D 2 Replies Last reply
      0
      • L Luc Pattyn

        When I bought my USB-to-serial cable, it came with a CD-ROM containing a driver. When I installed it, it turned the port into a regular serial port, so it shows up in all serial port enumerations, and most/all serial apps can use it, whether HyperTerminal or some .NET based app using SerialPort class. The app never is aware the USB-based serial port is connected in a different manner, all the nasty details are hidden by Windows and the device drivers. BTW: there are minor differences between such a USB-to-serial cable and a regular serial port, mainly in timing; it is not able to achieve very high speed in toggling the control lines, which for most applications is irrelevant; if however the attached hardware requires very short pulses on say the DTR/DSR/RTS pins, the motherboard- based serial port might be able to deliver and the USB-to-serial might not, due to the fact USB communication requires data packets, which must be transmitted and interpreted, whereas a direct port is much "closer" to the CPU. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Sorry for any delays in replying, I currently don't always get e-mail notifications.


        J Offline
        J Offline
        JoeRip
        wrote on last edited by
        #3

        Luc, read your sig: I'm currently not getting ANY email notifications. I suspect it's been the website/database overhaul they are doing. Hopefully notifications are back on track now!

        L 1 Reply Last reply
        0
        • J JoeRip

          Luc, read your sig: I'm currently not getting ANY email notifications. I suspect it's been the website/database overhaul they are doing. Hopefully notifications are back on track now!

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          Today I am getting an e-mail notification on most of the replies I am getting, but not all of them. That is why I have put the warning in my sig. The funny thing is, whenever I reply to one of my replies (or send an e-mail to my own reply) I am sure NOT to get an e-mail. :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          Sorry for any delays in replying, I currently don't always get e-mail notifications.


          A 1 Reply Last reply
          0
          • L Luc Pattyn

            When I bought my USB-to-serial cable, it came with a CD-ROM containing a driver. When I installed it, it turned the port into a regular serial port, so it shows up in all serial port enumerations, and most/all serial apps can use it, whether HyperTerminal or some .NET based app using SerialPort class. The app never is aware the USB-based serial port is connected in a different manner, all the nasty details are hidden by Windows and the device drivers. BTW: there are minor differences between such a USB-to-serial cable and a regular serial port, mainly in timing; it is not able to achieve very high speed in toggling the control lines, which for most applications is irrelevant; if however the attached hardware requires very short pulses on say the DTR/DSR/RTS pins, the motherboard- based serial port might be able to deliver and the USB-to-serial might not, due to the fact USB communication requires data packets, which must be transmitted and interpreted, whereas a direct port is much "closer" to the CPU. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            Sorry for any delays in replying, I currently don't always get e-mail notifications.


            D Offline
            D Offline
            Dromar
            wrote on last edited by
            #5

            The problem is that we have to program our own driver for the USB. So I wanted to know how to send bit in C#

            L 1 Reply Last reply
            0
            • L Luc Pattyn

              Today I am getting an e-mail notification on most of the replies I am getting, but not all of them. That is why I have put the warning in my sig. The funny thing is, whenever I reply to one of my replies (or send an e-mail to my own reply) I am sure NOT to get an e-mail. :)

              Luc Pattyn [Forum Guidelines] [My Articles]


              Sorry for any delays in replying, I currently don't always get e-mail notifications.


              A Offline
              A Offline
              Anthony Mushrow
              wrote on last edited by
              #6

              Wow, they totally listened to my suggestion then, about not receiving notifications for your own replies... alternitavely, they where already going to do that. Or somehting is still up with the e-mail server. Whichever.

              My current favourite word is: Bauble!

              -SK Genius

              L 1 Reply Last reply
              0
              • D Dromar

                The problem is that we have to program our own driver for the USB. So I wanted to know how to send bit in C#

                L Offline
                L Offline
                Luc Pattyn
                wrote on last edited by
                #7

                You may get more/better replies if you tell us more about what it is you want to achieve and why you feel you need to develop a driver? your own hardware? ... :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                Sorry for any delays in replying, I currently don't always get e-mail notifications.


                D 1 Reply Last reply
                0
                • A Anthony Mushrow

                  Wow, they totally listened to my suggestion then, about not receiving notifications for your own replies... alternitavely, they where already going to do that. Or somehting is still up with the e-mail server. Whichever.

                  My current favourite word is: Bauble!

                  -SK Genius

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #8

                  SK Genius wrote:

                  about not receiving notifications for your own replies

                  well I don't really need mail notifications when replying to myself, but it is and should continue to be an easy way to check whether notifications still work (after the CP earthquake I had none for several days). Why would you suggest to filter them out??? :)

                  Luc Pattyn [Forum Guidelines] [My Articles]


                  Sorry for any delays in replying, I currently don't always get e-mail notifications.


                  A 1 Reply Last reply
                  0
                  • L Luc Pattyn

                    SK Genius wrote:

                    about not receiving notifications for your own replies

                    well I don't really need mail notifications when replying to myself, but it is and should continue to be an easy way to check whether notifications still work (after the CP earthquake I had none for several days). Why would you suggest to filter them out??? :)

                    Luc Pattyn [Forum Guidelines] [My Articles]


                    Sorry for any delays in replying, I currently don't always get e-mail notifications.


                    A Offline
                    A Offline
                    Anthony Mushrow
                    wrote on last edited by
                    #9

                    Hey now, at least one other person agreed, they said so! Anyways, its just uneccesary to receive one of my own messages in my inbox. Besides, think of all the e-mail notifications it could save... like 5 or perhaps even 10! :rolleyes: And on a side note, where have you been these last few days? I usually see you hangin' around here alot, but the last few days.. not so much.

                    My current favourite word is: Bauble!

                    -SK Genius

                    L 1 Reply Last reply
                    0
                    • A Anthony Mushrow

                      Hey now, at least one other person agreed, they said so! Anyways, its just uneccesary to receive one of my own messages in my inbox. Besides, think of all the e-mail notifications it could save... like 5 or perhaps even 10! :rolleyes: And on a side note, where have you been these last few days? I usually see you hangin' around here alot, but the last few days.. not so much.

                      My current favourite word is: Bauble!

                      -SK Genius

                      L Offline
                      L Offline
                      Luc Pattyn
                      wrote on last edited by
                      #10

                      SK Genius wrote:

                      where have you been these last few days?

                      with a site that is getting upgraded for good reasons, but in the process recently: - has been and sometimes still is hampered by performance problems - offers almost no search facilities - has hidden some of its forums - is attracting fewer people, hence fewer questions - is not always giving notifications my response time has increased and my contributions indeed have been less frequent. Newtons third law applies to all of us. :)

                      Luc Pattyn [Forum Guidelines] [My Articles]


                      Sorry for any delays in replying, I currently don't always get e-mail notifications.


                      1 Reply Last reply
                      0
                      • L Luc Pattyn

                        You may get more/better replies if you tell us more about what it is you want to achieve and why you feel you need to develop a driver? your own hardware? ... :)

                        Luc Pattyn [Forum Guidelines] [My Articles]


                        Sorry for any delays in replying, I currently don't always get e-mail notifications.


                        D Offline
                        D Offline
                        Dromar
                        wrote on last edited by
                        #11

                        It is a project for our university. We got an processor, and now we have to program an driver for the USB port, and a C# application which can comunicate with it (one byte would be enough).

                        L 1 Reply Last reply
                        0
                        • D Dromar

                          It is a project for our university. We got an processor, and now we have to program an driver for the USB port, and a C# application which can comunicate with it (one byte would be enough).

                          L Offline
                          L Offline
                          Luc Pattyn
                          wrote on last edited by
                          #12

                          Do you mean to say the microprocessor has a USB port and a serial port, and your task is to actually turn it into a USB-to-serial cable? if one byte is enough, let the microprocessor be powered through the USB port, and have it output "Hello World!" as soon as it exits power-up reset! Writing an actual Windows driver is not a simple task. You will need the right DDK (Driver Development Kit), which I expect comes with some examples. Hint: your microprocessor vendor may hold the solution for you; he probably has an elementary solution for this kind of application. BTW: which processor is it? :)

                          Luc Pattyn [Forum Guidelines] [My Articles]


                          Sorry for any delays in replying, I currently don't always get e-mail notifications.


                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups