I use a USBserialport for RS232 communications all the time on my projects RS232 since it is a very useful standard communication module which can be...
is a type of device that uses an UART chip, a Universal Asynchronous Receiver Transmitter. One of the two basic ways to interface a computer in the olden days, parallel ports were the other way. Serial is simple to hook up, it doesn't need a lot of wires. Parallel was useful if you wanted to go fast, typ 8 times faster than serial, but cables and connectors were expensive. Parallel I/O has completely disappeared from computer designs, caught up by tremendous advances in bus transceivers, the kind of chip that can transmit an electrical signal down a wire.
COM
comes from MS-Dos, it is a device name. Short for "COMmunication port". Computers in the 1980's usually had two serial ports, labeled COM1 and COM2 on the back of the machine. This name was carried forward into Windows, most any driver that simulates a serial port will create a device with "COM" in its name.
LPT
was the device name for parallel ports, short for "Line PrinTer".
RS-232
was an electrical signaling standard for serial ports. It is the simplest one with very low demands on the device, supporting just a point-to-point connection. RS-422 and RS-485 were not uncommon, using a twisted pair for each signal, providing much higher noise immunity and allowing multiple devices connected to each other.
USB
means Universal Serial Bus. Empowered by the ability to integrate a micro-processor into devices that's a few millimeters in size and costs a few dimes. It replaced legacy devices in the latter 1990s. It is Universal because it can support many different kinds of devices, from coffee-pot warmers to disk drives to wifi adapters to audio playback. It is Serial, it only requires 4 wires. And it is a Bus, you can plug a USB device into an arbitrary port. It competed with FireWire, a very similar approach and championed by Apple, but won by a land-slide.The only reason that serial ports are still relevant in on Windows these days is because a USB device requires a custom device driver. Device manufacturers do not like writing and supporting drivers, they often take a shortcut in their driver that makes it emulate a legacy serial port device. So programmers can use the legacy support for serial ports built into the operating system and about any language runtime library. Rather imperfect support btw, these emulators never support plug-and-play well. Discovering the specific serial port to open is very difficult. And these drivers often misbehave in impossible to diagnose ways when you jerk a USB device while your program is using it.
14 Ocak 2015
63 kişi değerlendirdi
8 yorum
{"2_iroo":{"state":{"logo":{"href":"//yandex.com.tr","isForeign":true},"form":{"action":"/search/","searchLabel":"Bul","hiddenInputs":[{"name":"lr","value":20815}]},"actions":{"advancedSearch":{"checked":false,"ariaLabel":"Gelişmiş arama"},"moreButtonProps":{"ariaLabel":"Daha fazla"},"cbir":{"name":"cbir","label":"Görsele göre arama","infoUrl":"//yandex.ru/promo/photosearch/index?source=landingdesk","isMacOS":false}},"userSection":{"loggedIn":false,"loginProps":{"loginUrl":"https://passport.yandex.com.tr/auth?retpath=%2F&origin=serp_desktop_auth_new","loginText":"Giriş yap","burgerAriaLabel":"Menü"}},"navigation":{"tabs":[{"id":"www","label":"Arama","url":"//yandex.com.tr","params":{"source":"tabbar"},"target":""},{"id":"images","label":"Görsel","url":"//yandex.com.tr/gorsel/search","params":{"text":"[$query]","noreask":"[$noreask]","nomisspell":"[$nomisspell]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"video","label":"Video","url":"//yandex.com.tr/video/search","params":{"text":"[$query]","noreask":"[$noreask]","parent-reqid":"[$reqid]","from":"tabbar"}},{"id":"maps","label":"Haritalar","url":"//yandex.com.tr/harita","params":{"text":"[$query]","source":"serp_navig"}},{"id":"translate","label":"Çeviri","url":"//ceviri.yandex.com.tr","params":{"text":"[$query]","from":"tabbar"}}],"selectedTabId":"www"},"context":{"query":"usb serial port","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL","lr":"20815","counters":{"type":"b","data":{"$header":"0_3d6hz000","logo":"0_3d6hz001","login":"0_3d6hz003","usermenu":"0_3d6hz004","market-cart":"0_3d6hz006","more-button":"0_3d6hz007","cbir":"0_3d6hz008","$navigation":"0_3d6hz009","item":"0_3d6hz00i","tab-www":"0_3d6hz00b","tab-images":"0_3d6hz00d","tab-video":"0_3d6hz00f","tab-maps":"0_3d6hz00h","tab-translate":"0_3d6hz00j"}}},"loggedIn":false,"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"0_3d6hw01-0-1"},"ui":"desktop","service":"web","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL","fast":{"name":"header-desktop"}}}}},"type":"header-desktop"},"2_3d6h0":{"state":{"thumbWidth":198,"thumbHeight":113,"videoPreviewHref":"http://www.youtube.com/watch?v=yeqgkZ0TQkc","internalLinksTarget":"_blank","posterSrc":"//avatars.mds.yandex.net/get-vthumb/3152978/8cac2c9ffd2cb3b1c92baf139a9b3855/564x318","videoSrc":"https://video-preview.s3.yandex.net/yU8lSAAAAAA.mp4","videoType":"video/mp4","duration":"1:51","isAdultContent":false,"isVertical":false,"logNode":{"name":"video","attrs":{"externalId":{"entity":"video","id":"12828798433499992025"},"hasVideoViewerLink":false,"hasFilmId":true}},"organicVideoMeta":{"created":"18 Tem 2018","views":"38 bin görüntüleme"},"i18nTexts":{"durationAriaLabel":"Süre","freshAriaLabel":"Yayınlandı"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3d6hw03-0-1"},"ui":"desktop","service":"web","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL","organic":1}}}},"type":"organic"},"2_3d6h1":{"state":{"answersUrl":"https://stackoverflow.com/questions/27937916/whats-the-difference-between-com-usb-serial-port#answers","type":"fact","tabsOptions":[{"id":"question","text":"Soru"},{"id":"bestAnswer","text":"En iyi yanıt"},{"id":"moreAnswers","text":"1 yanıt daha","shortText":"Daha fazla"}],"tabContents":{"question":{"construct":[{"type":"paragraph","content":[{"type":"text","content":"I am confused about the these 3 concepts."}]},{"type":"paragraph","content":[{"type":"text","content":"My understanding is, "},{"type":"code","content":[{"type":"text","content":"Serial Port"}],"isInline":true},{"type":"text","content":" usually means RS-232 compatible port (RS = Recommended Standard). "},{"type":"code","content":[{"type":"text","content":"USB"}],"isInline":true},{"type":"text","content":" stands for "},{"type":"code","content":[{"type":"text","content":"Universal Serial Bus"}],"isInline":true},{"type":"text","content":". So its name contains serial port, does it support RS-232? What does the "},{"type":"code","content":[{"type":"text","content":"Universal"}],"isInline":true},{"type":"text","content":" mean?"}]},{"type":"paragraph","content":[{"type":"text","content":"And what does COM port mean? "}]},{"type":"paragraph","content":[{"type":"text","content":"ADD 1"}]},{"type":"paragraph","content":[{"type":"text","content":"Some understanding from Hans' answer:"}]},{"type":"paragraph","content":[{"type":"text","content":"To reduce effort, device manufacturers usually make their device can behave like a serial port device as well. This relies on the the fact that many OS and language libraries have already included serial port communication support. Though such support is no comparable to a real matching device driver."}]},{"type":"paragraph","content":[{"type":"text","content":"ADD 2"}]},{"type":"paragraph","content":[{"type":"text","content":"A good reference doc about "},{"type":"text","content":"Serial Port HOW-TO"},{"type":"text","content":"."}]},{"type":"paragraph","content":[{"type":"text","content":"And btw, "},{"type":"text","content":"the Linux Document Project"},{"type":"text","content":" is really useful."}]}],"footerProps":{"date":1540035073,"numLiked":43,"numCommented":0}},"bestAnswer":{"construct":[{"type":"paragraph","content":[{"type":"code","content":[{"type":"text","content":"Serial port"}],"isInline":true},{"type":"text","content":" is a type of device that uses an UART chip, a Universal Asynchronous Receiver Transmitter. One of the two basic ways to interface a computer in the olden days, parallel ports were the other way. Serial is simple to hook up, it doesn't need a lot of wires. Parallel was useful if you wanted to go fast, typ 8 times faster than serial, but cables and connectors were expensive. Parallel I/O has completely disappeared from computer designs, caught up by tremendous advances in bus transceivers, the kind of chip that can transmit an electrical signal down a wire."}]},{"type":"paragraph","content":[{"type":"code","content":[{"type":"text","content":"COM"}],"isInline":true},{"type":"text","content":" comes from MS-Dos, it is a "},{"type":"text","content":"device name"},{"type":"text","content":". Short for \"COMmunication port\". Computers in the 1980's usually had two serial ports, labeled COM1 and COM2 on the back of the machine. This name was carried forward into Windows, most any driver that simulates a serial port will create a device with \"COM\" in its name. "},{"type":"code","content":[{"type":"text","content":"LPT"}],"isInline":true},{"type":"text","content":" was the device name for parallel ports, short for \"Line PrinTer\"."}]},{"type":"paragraph","content":[{"type":"code","content":[{"type":"text","content":"RS-232"}],"isInline":true},{"type":"text","content":" was an electrical signaling standard for serial ports. It is the simplest one with very low demands on the device, supporting just a point-to-point connection. RS-422 and RS-485 were not uncommon, using a twisted pair for each signal, providing much higher noise immunity and allowing multiple devices connected to each other."}]},{"type":"paragraph","content":[{"type":"code","content":[{"type":"text","content":"USB"}],"isInline":true},{"type":"text","content":" means Universal Serial Bus. Empowered by the ability to integrate a micro-processor into devices that's a few millimeters in size and costs a few dimes. It replaced legacy devices in the latter 1990s. It is Universal because it can support many different kinds of devices, from coffee-pot warmers to disk drives to wifi adapters to audio playback. It is Serial, it only requires 4 wires. And it is a Bus, you can plug a USB device into an arbitrary port. It competed with FireWire, a very similar approach and championed by Apple, but won by a land-slide."}]},{"type":"paragraph","content":[{"type":"text","content":"The only reason that serial ports are still relevant in on Windows these days is because a USB device requires a custom device driver. Device manufacturers do "},{"type":"text","content":"not"},{"type":"text","content":" like writing and supporting drivers, they often take a shortcut in their driver that makes it emulate a legacy serial port device. So programmers can use the legacy support for serial ports built into the operating system and about any language runtime library. Rather imperfect support btw, these emulators never support plug-and-play well. Discovering the specific serial port to open is very difficult. And these drivers often misbehave in impossible to diagnose ways when you jerk a USB device while your program is using it."}]}],"footerProps":{"date":1421249902,"numLiked":63,"numCommented":8}},"moreAnswers":[{"construct":[{"type":"paragraph","content":[{"type":"text","content":"USB stand for Universal Serial "},{"type":"text","content":"Bus"},{"type":"text","content":" not "},{"type":"text","content":"Port"},{"type":"text","content":". The term \"serial port\" simply means that the data is transferred one bit at a time over a single signal path - in that sense even Ethernet is "},{"type":"text","content":"serial"},{"type":"text","content":" in nature. The word "},{"type":"text","content":"serial"},{"type":"text","content":" in both terms implies no relationship other than the width of the data path."}]},{"type":"paragraph","content":[{"type":"text","content":"You are right in that the term "},{"type":"text","content":"serial-port"},{"type":"text","content":" in the context of a PC normally means an RS-232 port, but there are other serial port standards such as RS-422 and RS-485 often used in industrial applications. What these have in common is that they are implemented using a UART ("},{"type":"text","content":"Universal Asynchronous Receiver/Transmitter"},{"type":"text","content":")."}]},{"type":"paragraph","content":[{"type":"text","content":"The term "},{"type":"text","content":"Universal"},{"type":"text","content":" in USB merely reflects the fact that it is not a specific device interface such as the dedicated mouse or keyboard ports found on older hardware. Similarly a UART based serial port is not device specific, reflected by the U in UART."}]},{"type":"paragraph","content":[{"type":"text","content":"USB differs significantly from RS-232 in a number of ways; it is a master/slave (or host/device in USB terminology), rather than peer-to-peer, the USB device cannot initiate communication, it must be polled by the host. USB includes a low-voltage power supply to allow devices with moderate power requirements to be powered by the bus - that is also why USB ports can be used for charging battery powered devices. USB is significantly more complex that RS-232 which defines only the physical (hardware) layer whereas USB requires a complete software protocol stack."}]},{"type":"paragraph","content":[{"type":"text","content":"The term COM is just a device name prefix used in Windows (and previously MS-DOS) for a serial (UART) port. Short for \"communications\", you can for example open a COM port as a stream I/O device with say "},{"type":"code","content":[{"type":"text","content":"FILE* port = fopen( \"COM1\", \"wr\" ) ;"}],"isInline":true},{"type":"text","content":"."}]}],"footerProps":{"date":1635178649,"numLiked":17,"numCommented":2}}]},"organic":{"faviconProps":{"src":"https://favicon.yandex.net/favicon/v2/https://stackoverflow.com","size":"m","pageNumber":0,"index":0},"title":"What's the difference between \"COM\", \"\u0007[USB\u0007]\", \"\u0007[Serial\u0007] \u0007[Port\u0007]\"? [closed]","pathProps":{"items":[{"url":"https://stackoverflow.com/questions/27937916/whats-the-difference-between-com-usb-serial-port","text":"stackoverflow.com"},{"url":"https://stackoverflow.com/questions/27937916/whats-the-difference-between-com-usb-serial-port","text":"whats-the-difference-between-com-usb-serial-port"}]},"faviconPosition":0,"subtitlePosition":1,"linkProps":{"url":"https://stackoverflow.com/questions/27937916/whats-the-difference-between-com-usb-serial-port"},"hostTitle":"Stackoverflow.com","description":"stackoverflow.com › whats-the-difference-between-com-usb-serial-port"},"extralinksProps":{"hidden":true,"directions":["bottom-end"],"items":[{"variant":"reportFeedback","reportFeedback":{"feature":"Блок ответов для разработчиков","title":"Bu yanıtta yanlış olan nedir?","checkBoxLabels":[{"value":"Yanıt sorguya uygun değil"},{"value":"Yanıt hatalı"},{"value":"Yanıttaki bilgiler eksik"},{"value":"Diğer"}]}}]},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3d6hw0c-0-1"},"ui":"desktop","service":"web","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL","fast":{"name":"article"}}}}},"type":"article"},"2_3d6h2":{"state":{"linksGroups":[{"type":"geo","links":[{"label":"Columbus","title":"Columbus","url":"//yandex.com.tr/tune/geo","logNode":{"name":"region"},"target":"_self","a11yLabel":"Bölgeniz Columbus","needRetpath":true}]},{"type":"feedback","links":[{"label":"Hata bildir","logNode":{"name":"feedback","attrs":{"behaviour":{"type":"dynamic"}}}}]},{"type":"settings","links":[{"label":"Ayarlar","url":"//yandex.com.tr/tune/search","logNode":{"name":"settings"},"target":"_self","needRetpath":true}]},{"type":"company","links":[{"label":"Hakkımızda","url":"https://company.yandex.com.tr","logNode":{"name":"about"},"target":"_blank"},{"label":"Ticari teklifler","url":"/search/direct?text=usb%20serial%20port&filters_docs=direct_cm","logNode":{"name":"commercial"},"target":"_blank"},{"label":"Kariyer","url":"//yandex.com.tr/jobs/?utm_source=serp_turkie&utm_medium=footerlink&utm_content=career","logNode":{"name":"vacancy"},"target":"_blank"},{"label":"Kullanım lisansı","url":"//yandex.com.tr/legal/termsofuse/","logNode":{"name":"license"},"target":"_blank"},{"label":"Gizlilik Politikası","url":"//yandex.com.tr/legal/confidential/","logNode":{"name":"confidential"},"target":"_blank"}],"a11yHidden":true}],"reportFeedbackProps":{"feature":"Подвал","title":"Hata bildir","checkBoxLabels":[]},"isSearchApp":false,"hasExtralinks":true,"limitingSelector":".AliceFabButton","baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3d6hw0d-0-1"},"ui":"desktop","service":"web","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL"}}}},"type":"serp-footer"},"2_3d6h3":{"state":{"conditionLoadList":{"marketCart":false,"highchartsHighstock":false,"advProductGallery":false,"musicPlayer":false,"ecomRates":false,"photoViewer":false,"easterEggModal":false,"easterEggPlusGamesModal":false,"futurisFeedbackLoader":false,"darkmodeChangeDrawer":true},"reportFeedbackBaseProps":{"initEmail":"","metaFields":{"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","userTestids":"186144,1087953,1101443,1097143,1089852,1107403,1112089,1106067,1109509,1099735,1109514,1100008,1104216,1112596,1089202,614105,1031785,1114515,1115095,1106104,936724,1074448,132355,1106424,123842,1114432,1112577,1080576,1106626,1112523,1107979,1090434,1114602,1110305,658770,364898,1083344,1102453,260564,120693,1103657,1113301,1107795,1113289,1113736,1109384,919923,1113483,1109564,1107524,1101807,1103305,1112190,1096030,1113503,1107617,151171,1104155,1106126,1103383,287509,338390,1112645,790811,1100048,1103877,1106252,1113246,1112686,1111181,1109973,1112620,1111189,1101537,1082996,1104156,1108593","yandexuid":"6197797111726614644","uid":"0","queryText":"usb serial port","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL","searchSlices":["drawer_search_slice_ecom","drawer_search_slice_english"],"userRegionName":"Columbus","userRegionId":"20815","isChildAccount":false}},"extralinksPopupProps":{"abuseLink":"https://twitter.yandex.com.tr/search/abuse?sign=ba679b851d41c8187b4285ad1cfd832c&keyno=0"},"isLoggedIn":false,"userMenuDialogProps":{"flag":"skin,feedback","host":"yandex.com.tr","lang":"tr","project":"serp","queryParams":{"utm_source":"search"},"retpath":"https%3A%2F%2Ftwitter.yandex.com.tr%2Fsearch%2F%3Ffilters_docs%3Ddirect_cm%26lr%3D20815%26text%3Dusb%2Bserial%2Bport%26ncrnd%3D63666","tld":"com.tr"},"baobab":{"parentNode":{"context":{"genInfo":{"prefix":"2_3d6hw0e-0-1"},"ui":"desktop","service":"web","reqid":"1726614644622377-9170169458019779711-balancer-l7leveler-kubr-yp-vla-218-BAL","fast":{"name":"lazy-load"}}}}},"type":"lazy-load"}}