• Post Reply Bookmark Topic Watch Topic
  • New Topic

serial port communication  RSS feed

 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I,am new to serial port programming and i've been assigned a job which has to be implemented using java . I need to communicate with the Fax modem and send fax to different numbers . I came across javax.comm a few days back but could not find any good resources for serial port programming an javax.comm. Can somebody guide me please. This is urgent.
Thanks in advance
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help me people . Its is urgent .
Thanks in advance .
 
Tony Combe
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I've been looking around for the same thing, heres a few sites I came across
http://www.javaworld.com/javaworld/jw-05-1998/jw-05-javadev.html
http://www.javaworld.com/javaworld/jw-09-1998/jw-09-indepth.html
http://javacook.darwinsys.com/javacook/index-bychapter.html (look at chapter 10 for sample progs)
I've also heard about a Java telephony api but I'm unable to find any decent site on that yet.
If anyone know please list.
Thanks
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy
Well, of what I know, you sure can dial a number thru the modem and enable the handshake for FAX, but how would you convert the doc to a faxable doc? PS format, tiff image format and some others are faxable. The point is also in finding the conversion for the docs.
Dialing to the modem, and setting the modem for different classes of FAX and shaking hands with modem is quite easy once you know the AT COmmands for the modem.
AT Command handbooks are free to download from the Web.
Lupo
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and tony, those were good articles. Thanks for sharing!!
Lupo
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gautham
I,am new to serial port programming . As you said handshaking with the fax can be done but the real prob occurs when a doc file has to be send . Ok , now what i,am able to do uptill now is that i,am able to communicate with the modem , send the ATD command and read the response accordingly. When trying to send fax through my modem do i need to send some sort of fax AT commands ? . What next am i suppose to do ?
Thanks in advnace
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I,am really confused as to when am i suppose to send the text stream to my serial port . I've been able to send a few AT commands . Now i really don't know what next am i suppose to do. I have the complete list of AT and the FAX AT commnds for class 2.0 but i don;t know how to Manipulate them . Please help . This is very urgent .
Thanks in advance
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you will have to set your modem for the specific class of FAX modem. And then start the transfer of bytes.
Lupo
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by gautham kasinath:
you will have to set your modem for the specific class of FAX modem. And then start the transfer of bytes.
Lupo

I've foundthe fax class 2.0 , 1 commands and kind of understood them but the prob remains that in what sequence do i need to send those comomands and when should i start transmitting the data to the fax from my modem .
Thanks in advance
 
gautham kasinath
Ranch Hand
Posts: 583
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A good manual for your Modem would be useful. Or you can look up on the net, like how I did for the seq. of commands.
Anyway I will be on a lookout for the seq. so will let you know as soon as I strike it.
Lupo
 
Norm Miller
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raghav,
Try the search function (up near the moosehead on almost any page) select Java In General (Advanced). You will get linked to a lot of helpful information and links (and some not so helpful).
[ December 12, 2002: Message edited by: Norm Miller ]
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Norm
Nope . I did not get what i wanted . Can you help ?
Thanks in advance
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I've once again started this project . I,am sending the ATD command to the modem and dialing he fax number and at the same time i,am also sending the AT+FCLASS=1 command . When i receive the ok response , i send the AT+FTM command. Now at this point am i suppose to send the data with the command or wait for some response ?
kindly help
Thanks in advance
 
Raghav Mathur
Ranch Hand
Posts: 641
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help me guys ..... this is really urgent .
Thanks in advance .
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!