Replace the Cable(RS232) by WRT54GL

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
buntherng
DD-WRT Novice


Joined: 30 Aug 2006
Posts: 17

PostPosted: Sun Jun 01, 2008 10:22    Post subject: Replace the Cable(RS232) by WRT54GL Reply with quote
Any one can explain the structure at below?

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=2045&highlight=rs232

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.

Now, have install DD-WRT v24 on WRT54GL v1.1 and already instal MAX232 http://www.rwhitby.net/projects/wrt54gs.

********************************
2 x WRT54GL + DD-WRT54GL v24
2 x RS232 hardware interface



Copy of IMG_5745.JPG
 Description:
+3.3v TTL to RS232
 Filesize:  161.64 KB
 Viewed:  18221 Time(s)

Copy of IMG_5745.JPG


Sponsor
buntherng
DD-WRT Novice


Joined: 30 Aug 2006
Posts: 17

PostPosted: Thu Jun 05, 2008 6:09    Post subject: Re: Replace the Cable(RS232) by WRT54GL Reply with quote
Anyone can help me? I need the command to config DD-WRT standard to connection between RS232 of 2 WRT54GL. I need somebody to explain here!

I don't know the linux commmand but can follow your command. I think.

Now, I already have hardware interface.

Idea
Bib
DD-WRT Guru


Joined: 07 Jul 2008
Posts: 629
Location: France

PostPosted: Thu Nov 13, 2008 20:54    Post subject: Reply with quote
did you find? no help since june???
_________________
): FoReVeR nEwB Sad
biquad
DD-WRT Novice


Joined: 11 Oct 2008
Posts: 18

PostPosted: Fri Nov 14, 2008 0:29    Post subject: Reply with quote
OK, I saw the initial post: it is clear what you're trying to do (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?
[...]
On one box, do:
nc -l -p 1234 </dev/ttyS0 >/dev/ttyS0

And on the other:
nc 192.168.12.34 1234 </dev/ttyS0 >/dev/ttyS0
[...]

In your case you should change ttyS0 to ttyS1.
buntherng
DD-WRT Novice


Joined: 30 Aug 2006
Posts: 17

PostPosted: Fri Nov 14, 2008 5:46    Post subject: Reply with quote
biquad wrote:
-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.

How do you think?
biquad
DD-WRT Novice


Joined: 11 Oct 2008
Posts: 18

PostPosted: Fri Nov 14, 2008 14:28    Post subject: Reply with quote
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.

What do you think?

P.S. I sent you a message to your PM
buntherng
DD-WRT Novice


Joined: 30 Aug 2006
Posts: 17

PostPosted: Sun Nov 16, 2008 7:24    Post subject: Reply with quote
biquad wrote:
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?


Please see here.
http://www.wcscnet.com/HdwBTRS232.htm
http://www.datalinkcom.net/wireless_radio_modems/ZP24D-96RM-MR.htm
http://www.datalinkcom.net/wireless_radio_modems/ZP9D_touchpanel_diagram.jpg


I don't know how to do that. But I think we can apply WRT54GL to do like that.

Actually I need the easy interface like DD-WRT. You you make DD-WRT source code to like that?
Bib
DD-WRT Guru


Joined: 07 Jul 2008
Posts: 629
Location: France

PostPosted: Mon Nov 17, 2008 19:10    Post subject: Reply with quote
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 Sad
biquad
DD-WRT Novice


Joined: 11 Oct 2008
Posts: 18

PostPosted: Tue Nov 18, 2008 13:51    Post subject: Reply with quote
Buntherng,

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"!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum