Question

Short background, I have a device I connect to via HyperTerminal to receive information about the current state of the device. The device is connected to over modem with settings of 2400,7,O,1. I then send a single command and read the returned data.

My question is, is there a away in Java to dial out, once connected send the command and store the returned data in a string? Or can someone suggest a better alternative.

My end goal is to set a schedule for this to run and have it email the returned results.

I have attempted to search the site and have not found what I am looking for.

Was it helpful?

Solution

I beleive you want to use the Java Communications API...

http://www.oracle.com/technetwork/java/index-jsp-141752.html

This also looks helpful...

http://edn.embarcadero.com/article/31915

Also, if I recall correctly the way to tell a modem to dial is to send it "ATDT" and then the number... but I haven't done that in about 15 years now :)

Oh hey, this looks handy too :) http://www.uic.edu/depts/accc/network/dialin/modem_codes.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top