Outputting commands over serial to Cisco router

I'm currently working on a simple device that basically, when you press a button, a series of commands is issued to the console of a cisco router. At my work, we have cisco routers with call manager express as test beds for phones, and after 30 phones have registered, the router has to have each of the extensions cleared before you can connect another phone.

I am using a Freeduino Serial 2.0, due to it having the Max232 built in. Now, when I run the attached code, if I am plugged into a computer I can see the commands come up in a terminal, but the Cisco doesn't seem to respond at all. Am I missing something?

ciscoeasybutton.pde (4.44 KB)

common errors in rs232 are:

  • swapping TX/RX
  • missing or wrong line terminator like \n \r \n\r
  • baudrate
  • nr of start/stop/parity bits
  • hardware handshake CTS/RTS lines

Don't know what the cisco needs ... you have to dive into the manual/datasheet

Can you connect a terminal to the cisco and getting it to work?
What are the terminal settings? (baudrate/handshake etc)

Rob

I'm plugging it directly into the serial port on the board, so don't think I am crossing it. Cisco uses 9600 Baud, 8 data bits, 1 stop bit, no parity.

Hate to double post, but just letting you know that I got the problem fixed. Apparently, cisco has two grounds setup, and my adapter didn't take that into account. I hacked and spliced together my own adapter, and it works now.

That is a neat application, nice and practical. Heck if you want to save the cost of a button just have it do its thing at startup and then wait till you hit reset again :slight_smile:

If it was just me, or a few other people that I trust, I'd do it that way, but I'm also building some for in another department who are not so trust worthy. Basically, wanting to make sure it is idiot proof, and the final product will be enclosed and sealed off so nothing bad can happen to it (a few people who have to use it are known for destroying things).

Plus the cool thing about it is, we will be using less power, and using less space. Instead of having a computer running on each router, we'll just have an arduino.