I have designed a "universal" serial adapter that the XDA community might appreciate. I recently needed access to a variety of devices using serial TTL and RS232 communication. The devices being a phone, router and firewall unit. I talked with a few friends that are in IT and polled some other ROM developers to get an idea on what they may find useful in a serial adapter device. Below is the result of the work. The idea is to have 1 serial adapter that takes care of all of your DB9 / null modem / goofy pinouts in one package.
I have posted all of the code, pictures and an early circuit diagram to github: https://github.com/mcrosson/arduino_...serial_adapter . As I continue to develop and implement the project I will be pushing to github. Please note at this time the circuit diagram is a bit out of date. I am working on getting an updated diagram built but I am still learning Eagle and it will be a little while before I have it published.
- Phone UART chips
- Null modem serial ports
- Cisco serial consoles
- Configurable line speed
- TTL voltage adjustments (1.8V, 3.3V, 5V)
- RS232 communication
- Full UI
- Session recording to SD card
- RTC for timestamped sessions and output timestamps
Inline display of serial communication on LCDWon't fix, LCD response is too low for this RX/TX status via blinking the button LEDs
At 115200 line speeds the serial channel may drop characters -- This appears to be a speed limitation / bad codeFixed in dd981aa44d UI timeout isn't reset when events occurFixed in 7f60a42f9b Timeout config doesn't reset / change current timeoutFixed in ebd4ac5d04
IDE / Environment
This project was developed using stino (Sublime Text 2 plugin). It works slightly differently (read: more powerful) than the standard Arduino IDE. This project may or may not build under the Arduino IDE.
The `Project.h` and `Project.cpp` files define the pinouts in use, Arduino pinout and a number of other items that may vary between builds. Please read through these [short] files and update the pinouts, addresses and anything else that may be different before uploading to your Arduino.
I have posted some rough demo videos here (clickable) demonstrating some of the projects functions.
- Arduino Mega
- AdaFruit 1.8" LCD with MicroSD Card Slot
- PSP Joystick
- LED backlit buttons
- Spark Fun MicroUSB breakout
- AdaFruit logic level converter (bi-directional)
- RJ-45 jacks
- DB9 jack
- Maxim Max3232 RS232 to TTL DIP IC's
Credits / Thanks
- ChildOfTheHorn/Stacy Wylie
- Adam Outler
Articles / Information Used For Project
- http://petervanhoyweghen.wordpress.c...do-as-usb-to-* serial-converter/