how to connect arduino and usb camera with xiaomi nano router (openwrt)? - arduino

I want to develop a similar project based on this project, but i want to use xiaomi nano router instead of TP-WR703n router.
The problem is that my router does not have an USB port to communicate with other devices (arduino mega and camera).
My solution is:
Using a CP2102 converter and a female to female USB converter to make USB port for my router.
Using USB hub to connect with arduino and camera.
Is my solution possible?
Thanks.

No, you can't make a USB port out of UART port. The CP2101 converter works the other way around - it makes a serial port out of your USB port.

Related

Adb for arduino UNO

i am working on a distance sensing app for android using arduino and ultrasound sensor.I found code that uses Abd for communication between android and arduino. The Abd used is for Arduino mega which has many more ports as compared to arduino Uno.I searched for Adb for uno but couldn't find it can anyone help me in finding Adb for Uno.If nothelp me with mapping of I/O ports form mega to uno.
int the adb of Mega :
DDRE 0x40 refers to Port E bit 6
DDRJ 0x08 refers to Port J bit 3
DDRJ 0x04 refers to Port J bit 2
So I need to move those IO pins to pins that Uno supports within Ports A,B,C,D and change the the DDRE & DDRJ references accordingly.
For two devices to communicate through USB one of them must act as a HOST device.
When connecting Arduino to your PC, your PC is the host.
When connecting Android to your PC, your PC is the host.
When connecting Android to the USB port of Arduino Mega, Arduino is the host.
If you (somehow) connected Android to Arduino UNO's single USB, There are no host and so they can't communicate.
You can over come this limitation by buying Arduino Uno's Host Usb Shield and connect Android to that Shield.

USB to USB serial communication from PC to PC

I am currently connecting 2 PCs using serial communication and at this time I am using a USB to Serial converter, then a serial cable, then another USB to Serial converter going into the other PC in order to get the communication sent and received.
Is there a way to program the USB ports as COM ports without these converters and still be able to transfer the serial data over the USB using software rather than hardware, thus eliminating the need for the conversions and rather have just a straight USB cable to USB cable connection?
Thanks!

Arduino Yun - how it's detected over the wifi

I wonder how the arduino IDE recognizes the ip address of the arduinoYun board over wifi/ethernet. So that I can implement it myself over mobile application.
Thanks
The Yun uses Bonjour services (port 5353) for auto-discovery on a wireless network. For more information, look here.

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.

Cisco switch and router programming using 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.

Resources