Cisco switch and router programming using Arduino? - arduino

So, this topic is very similar to this Cisco Switch/Router programming using Arduino?.
I have an Arduino ATmega2560 and Ethernet Shield plus a Cisco 1751 router. I want to configure the router via the console or AUX port using Arduino.
Fast search gave the following results: you could connect to the router using RJ45 to Serial or RJ45 to RJ45 connectors; the protocol is very similar to Telnet (actually works like serial port with text-based commands).
So the main question is - am I able to control the router via a console or AUX port using Ethernet Shield (and an Ethernet library) or do I have to use a serial port connection using something like RS-232?
Update: I've noticed one thing - the DB9 port is just an option for easy communicating with a PC so it seems that my idea is not so bad:) See Cabling and Adapter Setups that Work.

As you have pointed out the console and aux ports on Cisco devices are serial ports not network ports so you need to connect to them using RS232, this is an entirely different type of interface from Ethernet.

Related

SIM7600 serial port multiplexer with Beaglebone

I am using SIM7600 module with Beaglebone board connected thru UART2. It works well with ppp on /dev/ttyS2.
Since the application wants the GPS info simultaneously, trying to use CMUX with the n_gsm driver as given here
https://github.com/Rtone/cmux
The modem responds with OK for AT+CMUX=0,0,5,127,0,0,200.
The tty devices for the virtual ports 1 to 4 are created in the linux - /dev/ttyGSM[1-4].
But no serial port utilities work.
Anyone has any experience in this.

How to connect Arduino with Internet?

I have gone through several links online but I have not found any appropriate solution to it. I am wondering if there is a way to connect an Arduino with WiFi without using any shield or any other external hardware. My laptop is connected to WiFi and the arduino board is connected to the laptop with an USB cable. I want to access/run the data for the Arduino using WiFi. Is there a way to do it?
Hope my query makes a sense.
Thanks.
Let's restate your question for clarity - you want to share the laptop's Internet connection (e.g. via WiFi) with the Arduino connected to the laptop with a USB cable, with no additional hardware?
Assuming I restated it correctly, the Arduino's USB connection provides a virtual "serial port" for communication. This means you can use an "IP over serial" solution for Internet access. One such common and widely supported solution is PPP.
However, programing the Arduino with IP over PPP stack requires significant amount of memory and is probably an overkill for whatever it is you're trying to do.
You're probably better off designing a custom-tailored protocol for the serial communication between the Arduino and a small gateway program you can program and run on the laptop.
If you're bent on a complex solution that provides full Internet access to the Arduino, the steps to achieve what you're after are:
Program the Arduino with a TCP/IP over PPP protocol stack, running on the serial port. You'll probably need an Arduino MEGA.
Setup the laptop to be a PPP endpoint on the Arduino's serial port. For a Windows machine you can refer to this page for information on how to do that.
Once the PPP link is up, you can setup the laptop's OS to share Internet access to the PPP link.

Underlying hardware beneath virtual Com port

I have a device connected to USB port via USB cable to my PC and in device Manager it says - > "XYZ corp Virtual COM port (COM A)"
Is this is same as Serial Com Port.?What is the underlying hardware under it both at device side and Host Side - a Uart or a USB or both at either end respectively?
It sounds like your USB device uses a driver that provides a serial port interface inside your computer. This means that other software can use the serial port APIs that Windows provides to connect to it and use it as a serial port. That software doesn't need to know the details of your USB device; it just needs to know about using serial ports in Windows. Windows ships with a driver that is often used to do this, and that driver is named usbser.sys. Your device might be using usbser.sys or it might be using some other driver.
The serial data is transferred via your computer's USB port and a USB cable. If you look at the signals on the USB cable, you will not see typical serial signals: you will see regular USB packets that just happen to be carrying that data needed for a serial port.
The USB device on the end of that cable might then translate that data into serial signals and act like a normal serial port, or that data might just be used directly inside the device. Without a link to the product in question, it is hard to tell you more than that.

Developing my own modem

I would like to develop my own modem for a custom communication network that will be detectable on the serial port by PC automatically. What I'm uncertain about is the protocol part of the AT commands and how to make it work seamlessly so that computer will detect the modem automatically.
I plan to use ftdi UART to USB converter to interface my microcontroller with the PC using standard serial interface. The PC will then use AT commands to communicate with the microcontroller that will in turn connect to another microcontroller over radio tranceiver and establish a two way serial connection over radio. The idea is that the PC on the other end will run PPPD and listen on it's own modem connection for incoming call and then bridge the connection with it's other internet interface that is connected to internet. The first computer will get it's own IP address using PPPD and will be connected to internet over this custom microcontroller based modem.
But how do I implement the communication protocol between my controller and PC? What commands do I absolutely need to implement? How do I make sure that the computer recognises my controller which is connected over ftdi usb to serial adapter as a functional modem?
Where can I find a speciffication of the minimum command set that is required of a modem?
In practice linux usually discovers a 3G modem automatically for example. Does that have to do with the actual USB identifier of the modem? Is it possible to have linux automatically discover an ordinary serial port modem? I'm thinking that the modem will be sending an AT idle ping repeatedly when it's plugged in so that linux should be able to detect it.

Create connection based on usb cable between 2 computers

I have 2 linux computers. For security, I want to setup a link between them, then program a library for sending/receiving data over this connection. I know that we can use USB networking cable for connection. But I am not sure is it possible to send and receive data on this link, does it depend on cable manufacturer? And Can I program library without using cable driver?
You can't use a USB cable to connect two computers with standard USB interfaces. Standard USB interfaces on computers are host interfaces and you can only connect a host to a device, not another host.
The "cable" described in the article it's not just a cable, the correct name would be USB host-host bridge controller and it powered by a chip designed and manufactured by Prolific - PL 2501. It's described also in the article.
As David Schwarz said with dumb cable (only the wires) you cannot setup a link between two PCs, because USB it's master/slave bus, where a device it's the slave and other the host. The PC it's designed to always be the host (the master).
The response it is that you cannot setup a link or do networking between two PCs using a dumb USB cable. You can do this only using a bridge like the one described in the article.

Resources