Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > convert the ip packet to and from RS-232 packet

Reply
Thread Tools

convert the ip packet to and from RS-232 packet

 
 
Li Han
Guest
Posts: n/a
 
      02-09-2009
Hi, I need to use radio to connect two local ip network, each local
network has a server computer which connects to a radio with RS-232
interface. I need to write a program to convert the local ip packet
into RS-232 packet, so the radio can send packetes to the remote
radio. I don't want to reinvent the wheel, is there anyone could give
me some suggestions?
Thank you!
Han
 
Reply With Quote
 
 
 
 
Steve Holden
Guest
Posts: n/a
 
      02-09-2009
Li Han wrote:
> Hi, I need to use radio to connect two local ip network, each local
> network has a server computer which connects to a radio with RS-232
> interface. I need to write a program to convert the local ip packet
> into RS-232 packet, so the radio can send packetes to the remote
> radio. I don't want to reinvent the wheel, is there anyone could give
> me some suggestions?
> Thank you!


There's a package called pyserial that's pretty good at handling RS-232
interfaces. Good luck!

regards
Steve
(G3VEK)
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

 
Reply With Quote
 
 
 
 
bobicanprogram
Guest
Posts: n/a
 
      02-09-2009
On Feb 9, 8:13 am, Li Han <lihang9...@gmail.com> wrote:
> Hi, I need to use radio to connect two local ip network, each local
> network has a server computer which connects to a radio with RS-232
> interface. I need to write a program to convert the local ip packet
> into RS-232 packet, so the radio can send packetes to the remote
> radio. I don't want to reinvent the wheel, is there anyone could give
> me some suggestions?
> Thank you!
> Han



You might want to check out the SIMPL toolkit. (http://
www.icanprogram.com/simpl). It come standard with an RS232
surrogate. This generic module will transparently transmit a SIMPL
message via RS232 serial connection. Although this module is written
in C, SIMPL itself fully supports Python as a language to create
modules.

bob
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import packet.module without importing packet.__init__ ? Gelonida N Python 4 09-11-2011 02:17 PM
Security: rec'd packet not an ipsec packet ! mediumkuriboh Cisco 0 02-09-2009 12:14 AM
Convert to binary and convert back to strings Harlin Seritt Python 29 02-24-2007 09:33 AM
Qestion about convert Object to byte[] and convert it back davidxiongcn@gmail.com Java 5 11-04-2006 04:11 PM
%PIX-4-402106: Rec'd packet not an IPSEC packet. lfnetworking Cisco 3 08-27-2006 05:30 AM



Advertisments