Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8606381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:04:48+00:00 2026-06-12T03:04:48+00:00

Im writing application that communicate (via serial port) with electronic device which i designed

  • 0

Im writing application that communicate (via serial port) with electronic device which i designed myself.

When my PC application starts – it opens available COM ports one by one and it sends some string (“What are you?” for example).

My device is programmed, to reply to that “magic question” with own ID (for example: “I am evil device for supervising employees”).

When my PC software receive that “magic reply” it starts working normally and its not searching other ports anymore.

Of course im not using stupid questions in data transmission, its just example.

Question is – can i send strings like on all (not busy) ports, to discover my device?

If I can – how that “question” string should look? Are there any normalized standards?

This is not first project like this on my desk, but now im developing solution for little industry and i need to pay more attention what my application is doing, because there may be other devices connected to COM ports and I do not know how they can react.

Im sorry, if i made some language mistakes, english is my third language.

Thanks in advance for replies.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T03:04:49+00:00Added an answer on June 12, 2026 at 3:04 am

    No, you wouldn’t want to do that.


    When you are using COM serial port, you have no idea what is plugged into the port. It could be nothing, your device, a modem, a mouse (though I believe nobody uses this anymore…) or whatever you can’t even imagine.

    Imagine if it is connected to another computer (probably a Linux/router), sending things may lead to execution of “that command”, thus creating unexpected effects (though your program may not notice). Or if it is some badly-programmed device, it may trigger a bug in the firmware, thus failing the device and making it malfunction.

    In short, in the worst case, you can cause a catastrophic event.


    Serial (RS232 or UART I assume) communications don’t have a designated transfer protocol (in contrast to USB which has one) to identify a device, so it isn’t fail-safe. The user must make sure he selected the correct port. This is probably one of the reasons why hardware manufacturers choose USB, and one of the reasons why USB is so popular, even to computer idiots.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a C# application that needs to communicate with another application written
I am writing a .NET application that can communicate with HID devices. I want
I have to develop a application that will communicate with some external device.I would
I am writing an application which uses WCF in order to communicate with Web
Im writing an application that supposed to send coordinates in an SMS, but I've
I am writing an application that allows a user to place images on a
I am writing an application that will allow an android phone and java application
I am writing an application that sends commands to a unix shell. I am
I'm writing an application that gives the user the option to resize an image
I'm currently writing an application that displays a lot , and I mean, a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.