Hi Pietro,

I installed just java comm v3 from the start.

I'm using Wavecom Fastrack Supreme 10 and it is compatible. Regarding
the baud_rate issue, I'm not sure its just me who experienced such
problem or anyone one else who are using same modem and also had this
problem.

crimson

On Jan 14, 3:43 pm, Pietro <[email protected]> wrote:
> But when you got the error:
>
> Not all params are supported by kernel
>
> You was using rxtx and changed to javacomm?
>
> Because that can explain the problem that I experienced in Linux/ppc.
>
> If not, you are a lucky man :).
>
> Anyway, what modem / phone model are you using?. Can it to be used to
> get calls too?. Model appear in the compatibility list?
>
> If the phone model does not appear, I suggest you put it and say that
> the phone has a specific 115200 baud rate.
>
> This can help some other people.
>
> Pietro
>
> On Jan 14, 12:36 am, crimson <[email protected]> wrote:
>
> > Hi Pietro,
>
> > Thanks for the suggestion. I tried writing code using Java Comm API
> > directly and issue the AT commands and was getting some garbage
> > characters from modem. Then somehow I managed to get proper OK
> > response after setting baud rate to 115200 instead of 9600. I then
> > tried to execute examples.modem.SendMessage but this time I used a
> > baud rate of 115200 instead of 9600. Now I am also able to send and
> > receive the sms. Not sure why the wrong baud rate will cause modem to
> > hang.
>
> > Regards,
> > Crimson
>
> > On Jan 12, 12:17 am, Pietro <[email protected]> wrote:
>
> > > Well Crimson, you got the wall :(.
>
> > > The easier things first: check with the command:
>
> > > dmesg
>
> > > Your modem or phone is in /dev/ttyS0 and if not so, correct and try
> > > again.
>
> > > The difficult and more probable scenario:
>
> > > I had the same problem with java in Linux under Powerpc architecture.
> > > I don't know if this is your case, but after a lot of fight, I can't
> > > implement smsserver on powerpc. BTW: I was using IBM java.
>
> > > As I suppose you do don't have powerpc machine, 2 things you can do
> > > are:
>
> > > 1) Change your java implementation. I am using the sun version and
> > > work fine. Use 32 bit implementation if your native libraries are 32
> > > bit, 64 bit if your native libraries are 64 bit. You will have
> > > problems if there are different bit versions.
>
> > > 2) Change the native library, that is: if you are using javacomm,
> > > change to rxtx or if you are using rxtx, change to javacomm. Remember
> > > to uninstall the jars of the replaced packages.
>
> > > You can try 1 or 2 or both and get your problem solved.
>
> > > Good luck
>
> > > On Jan 12, 12:35 am, crimson <[email protected]> wrote:
>
> > > > Thanks, Pietro. I have modified the rights but now I'm getting another
> > > > error. My modem is attached but it seems it cant be detected.
>
> > > > Searching for devices...
>
> > > > Found port: /dev/ttyS0
> > > >        Trying at   9600...  no device found (java.io.IOException: Not
> > > > all params are supported by kernel)
> > > >        Trying at  14400...  no device found
> > > > (javax.comm.UnsupportedCommOperationException: Baud rate not
> > > > supported)
> > > >        Trying at  19200...  no device found (java.io.IOException: Not
> > > > all params are supported by kernel)
> > > >        Trying at  28800...  no device found
> > > > (javax.comm.UnsupportedCommOperationException: Baud rate not
> > > > supported)
> > > >        Trying at  33600...  no device found
> > > > (javax.comm.UnsupportedCommOperationException: Baud rate not
> > > > supported)
> > > >        Trying at  38400...  no device found (java.io.IOException: Not
> > > > all params are supported by kernel)
> > > >        Trying at  56000...  no device found
> > > > (javax.comm.UnsupportedCommOperationException: Baud rate not
> > > > supported)
> > > >        Trying at  57600...  no device found (java.io.IOException: Not
> > > > all params are supported by kernel)
> > > >        Trying at 115200...  no device found (java.io.IOException: Not
> > > > all params are supported by kernel)
>
> > > > On Jan 7, 11:17 pm, Pietro <[email protected]> wrote:
>
> > > > > Yes, you have no permission to do nothing when you are in the group
> > > > > uucp.
>
> > > > > In order to do something, the entry must be:
>
> > > > > crw-rw----    1 uucp     uucp       4,  64 Jan  7 14:38 /dev/ttyS0
>
> > > > > Use chmod to change it, and it must to work.
>
> > > > > Anyway, the permissions in your system are weird because the owner
> > > > > usually is root, and by default, the group is uucp or another but ever
> > > > > has rw access by default.
>
> > > > > HTH
>
> > > > > Pietro
>
> > > > > On Jan 8, 3:22 am, crimson <[email protected]> wrote:
>
> > > > > > Hi all,
>
> > > > > > I just started using smslib to send out SMS via GSM modem. I tried
> > > > > > running misc.CommTest and below is the result I got. It seems there 
> > > > > > is
> > > > > > no enough permission to access the serial port. I have read similar
> > > > > > post on this issue and the advice is to add user to uucp group; but 
> > > > > > I
> > > > > > have checked that I am already included in uucp grp. Any advice?
>
> > > > > >  ls -l /dev/ttyS0
> > > > > > crw-------    1 uucp     uucp       4,  64 Jan  7 14:38 /dev/ttyS0
>
> > > > > > cat /etc/group | grep uucp
> > > > > > uucp:x:14:uucp,smsuser <-- user already added to group
> > > > > > smsuser:x:506:uucp
>
> > > > > > ==============
> > > > > > CommTest Results
> > > > > > ==============
> > > > > > Searching for devices...
>
> > > > > > Found port: /dev/ttyS0
> > > > > >        Trying at   9600...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  14400...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  19200...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  28800...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  33600...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  38400...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  56000...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at  57600...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > >        Trying at 115200...
>
> > > > > >   no device found (java.lang.RuntimeException:
> > > > > >   Error opening "/dev/ttyS0"
> > > > > >   Permission denied)
> > > > > > ...
>
> > > > > > Thanks,
> > > > > > crimson
-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.


Reply via email to