I need to change the RS232 cable to wireless communication. I have already install hardware and can see console at tts0. But I need to send the data from tts1 of router1 to tts1 of router2.
-basically a very long serial cable, right?).
-First question is: do you need bi-directional data or is it mono-directional (for example, always FROM MCU/module TO computer)?
-Second question: did you try the commands in p1mrx's post?
Answer.
1. Yes, I want to extension RS232 communicate by change the cable to wireless communication (WDS Mode).
2. Mostly RS232 communicate with Bi-directional.
3. The command is not clear for me. I have try many time. But still not working. Just see the startup from WRT54GL through interface port. I can command control through this port. The hardware is working but I don't need interface console.
I need to close initial or interface console. I need to change boardrate to 9600 bps or any I want. I talked with programer of DD-WRT but thay don't need to create program to support RS232 modification. They just make commercial firmware. I present pay wages or money for them, but no response.
OK, one thing at a time. I am sorry but I have a little trouble understanding your message.
What I would do is this: first, make sure the nc (netcat) command is working OK; next, get it to work on the WRT54.
My suggestion: get two old computers (or any new PC/laptop with a serial port or one of those USB-to-serial converters: practically all of them work with Linux). If you already have Linux installed, good. Otherwise, download a live CD (Knoppix, for example) and boot from the CD.
Next, configure the two PCs so they can ping each other.
Last, connect the serial ports and try the nc command.
Now you have MCU<-->rs232-PC1<-->(LAN)<-->PC2-rs232<-->rs232-Host PC
If you can get this setup to work, then I would move on to the WRT54 + wireless.
Last, connect the serial ports and try the nc command.
Now you have MCU<-->rs232-PC1<-->(LAN)<-->PC2-rs232<-->rs232-Host PC
If you can get this setup to work, then I would move on to the WRT54 + wireless.
What do you think?
In dd-wrt, the command to send data to rs232 port 2 is
Code:
echo "string-to-send" > /dev/tts/1
From within the webGUI, it is
Code:
echo \"string-to-send\" > /dev/tts/1
.
Maybe you'll need to add & at the beginning of the string, not sure. I have to do thing to send raw data like H55H55H55, which is UUUU
in ascii and something like 010101010101... in binary to do some AC voltage to be converted to DC then amplified to drive a relay
(ON/OFF switch) _________________ ): FoReVeR nEwB
did you read the message I sent you in Private Mail?
I already understood what you are trying to do. But, in my opinion, you mast make one step at a time: first, make sure the PC and MCU can talk to each other trough two Linux PCs (NOT WRT54) and an ethernet cable.
Then, if this works, try with two WRT54 + ethernet cable
Finally, WRT54 + wireless
Otherwise you will *never* understand where the problem is, unless you have quite a bit of experience.
I believe your problem is NOT the WRT54 GUI. All you need is already there in the GUI.
I believe the problem is elsewhere, that's why I insist you try "small steps"!