Author Topic: Socat for passing AT commands  (Read 541 times)

0 Members and 1 Guest are viewing this topic.

Offline saim

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Socat for passing AT commands
« on: May 12, 2021, 07:32:45 am »

I have a PC, to which a development board is connected via USB. To the board, a DUT is connected via USB again.

So, PC ------USB1--------> DevBoard -----(USB2)------> DUT

USB1 is /dev/ttyUSB0 (in the PC)
USB2 is /dev/ttyUSB2 (in the board)

If I need to pass AT commands from PC to DUT, can I use socat? If yes, please share some inputs on how the command would look like.

Thanks and regards,

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1526
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Socat for passing AT commands
« Reply #1 on: May 12, 2021, 10:21:48 am »
Hi Siam - and welcome to the Forum.

First thing:   Please put your posts on appropriate Board - we had to move it here.  Indeed, if you had read the New Members' Guide (where you posted) you would know what to do.

I have no experience of socat but a web search seems to indicate that you can't get all the way from a PC command through your Development Board to your DUT. 
But you might be able to get socat to create a file on your DB that you could read via s/w you write for the DB.  Just a thought.

There are tutorials on the web that might help you.


The Linux Community Forum

Re: Socat for passing AT commands
« Reply #1 on: May 12, 2021, 10:21:48 am »


SimplePortal 2.3.3 © 2008-2010, SimplePortal