LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-18-2006, 06:23 PM   #1
Taliesin.duchaos
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
Unhappy How do i write to a serial port (modem) in ascii or hex directly?


Here's my problem. I hate having to dual-boot just to download new packages. My internet service provider uses a dialer software that works only in windoze. I have been able to analyze the communications between win and the modem (see appendix 1). I would like to be able to access the internet from linux (either debian,gentoo or suse). I am trying to find a software for linux that could possibly use "macros" or "if then" to write directly to the modem port, so that i could "emulate" the dialer software.
I would love to be able to have that work in linux, it's the only thing stopping me from fully converting. I would really appreciate help on this. Thank you for reading this.


More (useless) information.
OS= winxp (for now :P ), debian, gentoo, opendos (gotta love arkanoid!!)
ISP=3web (no high speed in my area)
Modem=USR 56k External



Appendix 1.


Request: 4/18/2006 7:29:34 AM.50464 (+0.0156 seconds)





41 54 44 54 35 36 33 2D 31 36 31 34 0D ATDT563-1614.





Answer: 4/18/2006 7:29:57 AM.14564 (+23.6406 seconds)





0D 0A 43 4F 4E 4E 45 43 54 20 35 30 36 36 36 2F ..CONNECT 50666/
41 52 51 2F 56 39 30 2F ARQ/V90/





Port opened by process "svchost.exe" (PID: 1312)





Request: 4/18/2006 7:29:57 AM.20764 (+0.0469 seconds)





7E FF 7D 23 C0 21 7D 21 7D 20 7D 20 32 7D 22 7D ~}#!}!} } 2}"}
26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 7D 3F 7D &} } } } }%}&}?}
31 7D 30 8F 7D 27 7D 22 7D 28 7D 22 7D 2D 7D 23 1}0}'}"}(}"}-}#
7D 26 7D 31 7D 24 7D 26 4E 7D 33 7D 37 7D 21 D8 }&}1}$}&N}3}7}!
76 76 DC F4 7D 29 43 AA AD D5 7F B0 80 8D CE 81 vv})C*΁
7D 20 7D 20 7D 20 7D 20 F4 41 7E } } } } A~





Answer: 4/18/2006 7:29:58 AM.55164 (+0.3438 seconds)





7E FF 7D 23 C0 21 7D 21 7D 3C 7D 20 7D 38 7D 22 ~}#!}!}<} }8}"
7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 }&} }*} } }#}$#
7D 25 7D 26 6E E9 7D 2F 3E 7D 27 7D 22 7D 28 7D }%}&n}/>}'}"}(}
22 28 9F 7E "(~





Request: 4/18/2006 7:29:58 AM.56764 (+0.0000 seconds)





7E FF 7D 23 C0 21 7D 22 7D 3C 7D 20 7D 38 7D 22 ~}#!}"}<} }8}"
7D 26 7D 20 7D 2A 7D 20 7D 20 7D 23 7D 24 C0 23 }&} }*} } }#}$#
7D 25 7D 26 6E E9 7D 2F 3E 7D 27 7D 22 7D 28 7D }%}&n}/>}'}"}(}
22 E4 72 7E 7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 "r~~}#!}!}!}
32 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 2}"}&} } } } }%}
26 7D 3F 7D 31 7D 30 8F 7D 27 7D 22 7D 28 7D 22 &}?}1}0}'}"}(}"
7D 2D 7D 23 7D 26 7D 31 7D 24 7D 26 4E 7D 33 7D }-}#}&}1}$}&N}3}
37 7D 21 D8 76 76 DC F4 7D 29 43 AA AD D5 7F B0 7}!vv})C*
80 8D CE 81 7D 20 7D 20 7D 20 7D 20 64 9D 7E ΁} } } } d~





Answer: 4/18/2006 7:29:59 AM.28564 (+0.0938 seconds)





7E FF 7D 23 C0 21 7D 24 7D 21 7D 20 7D 2B 7D 2D ~}#!}$}!} }+}-
7D 23 7D 26 7D 31 7D 24 7D 26 4E 8F D1 7E }#}&}1}$}&N~





Request: 4/18/2006 7:29:59 AM.30164 (+0.0156 seconds)





7E FF 7D 23 C0 21 7D 21 7D 22 7D 20 2B 7D 22 7D ~}#!}!}"} +}"}
26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 7D 3F 7D &} } } } }%}&}?}
31 7D 30 8F 7D 27 7D 22 7D 28 7D 22 7D 33 7D 37 1}0}'}"}(}"}3}7
7D 21 D8 76 76 DC F4 7D 29 43 AA AD D5 7F B0 80 }!vv})C*
8D CE 81 7D 20 7D 20 7D 20 7D 20 BF 8E 7E ΁} } } } ~





Answer: 4/18/2006 7:29:59 AM.39564 (+0.0938 seconds)





7E FF 7D 23 C0 21 7D 22 7D 22 7D 20 2B 7D 22 7D ~}#!}"}"} +}"}
26 7D 20 7D 20 7D 20 7D 20 7D 25 7D 26 7D 3F 7D &} } } } }%}&}?}
31 7D 30 8F 7D 27 7D 22 7D 28 7D 22 7D 33 7D 37 1}0}'}"}(}"}3}7
7D 21 D8 76 76 DC F4 7D 29 43 AA AD D5 7F B0 80 }!vv})C*
8D CE 81 7D 20 7D 20 7D 20 7D 20 F3 3E 7E ΁} } } } >~


...... more of this but it is really long...
 
Old 04-19-2006, 12:57 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
I don't know anything about this subject, but a quick google yielded this forum where it seems someone got it working on Puppy Linux. Maybe they can help you out...
 
Old 04-19-2006, 02:29 PM   #3
Taliesin.duchaos
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Original Poster
Rep: Reputation: 0
thank you very much for you answer. I was sort of hoping of gettin my hands dirty, but i guess there are always 2 ways of doing things. I'll try this as soon as i get home.

 
Old 04-19-2006, 03:41 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Well, if you're still interested in getting your hands dirty, the two programs for serial port control that I've heard of (note that I've never used them) are kermit (or ckermit???) and minicom...
 
Old 04-19-2006, 03:46 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
Also there's a bunch of howto's here. Not sure how relevant any of them are, but search the page for "serial"
 
Old 04-21-2006, 08:08 AM   #6
Taliesin.duchaos
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Smile

C-kermit looks promising! I think it's exactly what i was looking for. Huge manual and tutorials! I'll give it a try, if i'm successfull ill upload the script on here for other 3web members to use..

thanks for the info guys!! hopefully i'll be able to give back to the community!
 
Old 04-21-2006, 08:31 AM   #7
Taliesin.duchaos
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Original Poster
Rep: Reputation: 0
found this floating around the minicom site:

ftp://ibiblio.org/pub/Linux/apps/ser...ut/!INDEX.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem to write to serial port os2 Programming 8 08-23-2016 02:48 AM
Send an .hex file by serial port ODSunal Programming 2 12-09-2004 08:12 PM
Help..on..connecting external modem directly to parallel port stuboo Linux - Hardware 12 10-22-2004 05:55 PM
Serial port Read Write SeanatIL Programming 2 07-14-2004 03:42 PM
Binary to Hex Ascii converter carboncopy Slackware 1 05-28-2004 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration