Communicating with arduino without using COM ports

For my new project I need a way to communicate small values to my, via. USB connected Arduino.
For my last project I used Serial Communication to send the data through a COM port.
Sadly, I can't use this method for my next project (it would go beyond the scope to explain why).
So my question is, is there a different method to communicate preferably through USB?
I'm still new to arduino programming so I hope someone can help me out.

Welcome to the forum

Which Arduino board are you using ?

How hard and fast is the requirement to use the USB connection ?

Have you considered I2C, SPI or any of the various networking protocols such as HTML and UDP or maybe even a wireless solution

That is a shame because it would put the requirement into perspective. Where is the data input coming from, for instance ?

if you are using ESP8266 or ESP32 boards have a look at ESP-NOW and ESP-MESH

Thanks for your quick answer and sorry for explaining my problem so bad and not giving enough information.

  1. I'm currently using a Arduino leonardo.
  2. I think a wireless solution is not possible, because the machine that has to send the data isn't
    plugged in to the internet nor has any form of wireless support.
  3. Basically the machine I'm trying to work with blocks all open COM ports for security reasons.
  4. The machine, in which the arduino is plugged in, sends the information to the arduino.
  5. I think all wireless solution is not possible, because the machine that has to send the data isn't
    plugged in to the internet nor has any form of wireless support.
    After the upper information, do you think SPI or I2C could be a valid solution?

If u do not want to communicate like sending command to be performed via communication port , so it is too east to sent command to arduino wirelessly through HC-05 Bluetooth Module. You can easily send command by them like a serial/ Com Port

Only if this mysterious device supports such protocols and only if it provides native outputs using those interfaces or can be programmed to do so. Can you actually program it ?

It would be so much easier to provide help if you gave more details of the device in question such as what form of outputs it actually has

I think you should be able to connect a usb/ttl adaptor between a computer and Serial1 of the Arduino. It is independent of the usb serial port accessed as Serial.

How will the machine which blocks open com ports know the Arduino is connected on Serial1?

if I had set up a machine to block COM ports I would block every thing else as well
e.g. prevent plugging in USB devices, connecting via BLE, etc etc

The device that sends the data is just a windows machine that I have full acces to.

It just blocks sending out information to the arduino, the arduino itself can send information via. com.

So how would this mysterious machine know that a laptop is connected to the Leonardo on Serial1?

The data is presumably coming from an application of some kind. How does that application output its data ?

if you connect a terminal emulator to the Arduino you can receive text but if you enter text on the keyboard it does arrive at the Arduino?? are you sure the operating system is blocking it?

The data that I want to send is an array of two bytes, currently I'm doing this by Serial communication sending it as a string with ";" devided and than decode the string into bytes when the arduino reads it.

I didn't test if it is possible, I'm working in a company and the security guy told me the information given above.

I had it the wrong way around the Arduino receives OK but anything transmitted by the Arduino is blocked. What sort of serial connection is it? RS232, 5V TTL, 3.3V TTL?
Could you connect via Ethernet?

Please explain why you can't do this over Serial1.

Because open COM ports are getting blocked.

Your description of what you want to do has become very confusing, at least to me

  • do you want to send data from the Arduino to the mysterious PC ?
  • do you want to receive data from the mysterious PC to the Arduino ?
  • what interfaces, such as USB, can you use on the mysterious PC ?
  • what software is running on the mysterious PC to send or receive data ?
  • can you install a program on the mysterious PC ?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.