Fedora Linux Support Community & Resources Center
  #1  
Old 17th October 2007, 03:11 PM
khachane.chetan Offline
Registered User
 
Join Date: Oct 2007
Posts: 1
Fargo Maetro GSM Modem on Serial Port

we are java research students.
we are working on sms based project, we have one issue of sending sms on fedora 7 with fargo maestro 20 gsm modem.Our Modem is connected to Serial Port.

We are newbies in Linux & having average knowlegde of java, j2me...

We have installed sun java in the linux box..then comm.jar api.
the deployment of the .so & java.comm jar is done as per requirement

our application is based on the following code:
http://www.java-samples.com/showtuto...?tutorialid=22

we have complied java files...then we have written the shell file for running the java class file.

--------------------------------------------------------------------------------
//DemoSms.java
public class DemoSms
{
public static void main(String args[])
{
SMSClient sc = new SMSClient(1);
sc.sendMessage("MyCellNo","Hello");
}

}
//ends here


#shell file

JAVA_HOME=/opt/jdk1.5.0_12
CLASSPATH=/opt/sms:$JAVA_HOME/jre/lib/comm.jar

$JAVA_HOME/bin/java -cp $CLASSPATH DemoSms

#shell file ends here



--------------------------------------------------------------------------------
/*
Console message errors we get are as follows
*/


[root@TEST ~]# sh SmsSend.sh
/dev/ttyS0
PortId = javax.comm.CommPortIdentifier@173a10f
java.io.IOException: Not all params are supported by kernel
at com.sun.comm.LinuxSerial.nativeSetSerialPortParams (Native Method)
at com.sun.comm.LinuxSerial.setSerialPortParams(Linux Serial.java:346)
at SerialConnection.setConnectionParameters(SerialCon nection.java:167)
at SerialConnection.openConnection(SerialConnection.j ava:100)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:595)

[1]+ Stopped sh SmsSend.sh
[root@TEST ~]# sh SmsSend.sh
/dev/ttyS0
PortId = javax.comm.CommPortIdentifier@173a10f


java.lang.RuntimeException:
Error opening "/dev/ttyS0"
lockf(): Resource temporarily unavailable
at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.j ava:66)
at javax.comm.CommPortIdentifier.open(CommPortIdentif ier.java:369)
at SerialConnection.openConnection(SerialConnection.j ava:89)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:595)

--------------------------------------------------------------------------------

As we are newbies we are not able to trace where the actual problem is...
We have used this modem in windows env and it runs perfectly..

We have tried configuring minicom also to try to send sms but we have failed in doing so..
We have already put around 20 hours trying to find the error but with no use..
Your help is very much appreciated...

Please help!!!..*

Last edited by khachane.chetan; 17th October 2007 at 03:18 PM.
  #2  
Old 26th October 2007, 08:57 AM
Chirag123
Guest
 
Posts: n/a
Finally we got our solution....
We were very disappointed with the luke response we got from this forum...
No solution!! No Leads!!!...
Any way we are posting back this solution so that in future people don't reach a deadlock...

Our problem was resolve by using IBM Linux Comm jar files & using their instructions...
http://www.ibm.com/developerworks/ja...guide.lnx.html

None of the suggested solutions we searched in the net gave us the solution..be it RXTX or Sun Java Comm...

RXTX was crashing JVM..some "Hot Spot" error...
Sun Comm Comm component...
  #3  
Old 26th October 2007, 09:03 AM
Wayne
Guest
 
Posts: n/a
Wait a minute. Are you two friends asking the same question or one person logging in as two users and asking the same question? Either way, I'm closing one of these threads as duplicate posts are not allowed.

Probably the lukewarm response was because no one knows anything about the hardware in question.

Wayne
Closed Thread

Tags
fargo, gsm, maetro, modem, port, serial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i communicate with modem on serial port harlander3000 Using Fedora 6 25th February 2008 09:51 PM
GSM Modem on Serial Port Chirag123 Servers & Networking 3 26th October 2007 02:51 PM
external, serial port, modem recognition caieng Hardware & Laptops 16 19th November 2006 08:25 PM
FC3-->FC4: external modem serial port change? Nightwing75 Using Fedora 0 27th June 2005 04:58 PM


Current GMT-time: 07:07 (Tuesday, 21-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Suto Orizare Travel Photos - Kenner Travel Photos on Instagram - Ober-Ramstadt