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
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. how to assign "virtual " serial port in C/C++ code ?

how to assign "virtual " serial port in C/C++ code ?

Scheduled Pinned Locked Moved Hardware & Devices
tutorialquestionc++comsysadmin
1 Posts 1 Posters 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am replacing physical cable (RS232 /EIA232) connecting PC (host/server) to a remote device (client) with Bluetooth. According to many resources – if I use “rfcomm” - as part of the (wireless) solution I need to also have “virtual (serial) port”. I need to keep the RS232 communication configuration , irregardless if rfcomm does not care about it. It needs to pass the data in SAME format as the cable did. My PC has these “devices” - one real USB to serial device and one USB to Bluetooth device. I am asking the forum - how do I assign – in C /C++ code the USB to serial device as “virtual serial port “? I am using QT QSerialPort example code application and having trouble identifying the “virtual port” to use in C / C++ code , I do not want to use command to do so. Any suggestions / code example would be appreciated , very much. PS Some documents use term pty ("pseudo-teletype" ) – is that a same as “virtual” port ? Still need to know how to assassin ...if so. https://unix.stackexchange.com/questions/127259/what-is-the-tty-major-number-of-your-unix/127260#127260 Bus 001 Device 021: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port / Mobile Action MA-8910P Bus 001 Device 020: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)

    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