My assumption is that there is something going on at the interrupt
level.
Once you write to the serial port buffer, if the buffer is full, then
the interrupt should signal CPU
properly. I am not sure if that is happening. I am not sure if the
serial port driver is doing it properly.
I tried to use the RXTX but got a ClassCastException because SMSLib
uses javax.comm.*.
RXTX was using gnu.io.*. Do we have any other installation
instructions for RxTx?


On May 4, 6:21 am, Thanasis <[email protected]> wrote:
> That solution takes me back a couple of years, when another friend
> made something similar... If I remember correctly, at that time he
> identified an error somewhere in the driver level of the USB(?)
>
> Have you tried with RxTx as well? From your logs, I assume that you
> are currently using JavaComm, right?
>
> On May 4, 11:55 am, Sri <[email protected]> wrote:
>
> > The problem is that I am using a old PC which does not have a large
> > serial port buffer size like the most recent ones. If I write a
> > sequence of bytes of size that will fit within that buffer size at a
> > given time with a minor delay, I can send up to 160 characters. I had
> > to change the ATModemDriver's write() method to accomplish that. So I
> > conclude that it is a hardware problem. If any of you think of a
> > better way to deal with this, please let me know. Otherwise, thanks
> > for all your help.
>
> > On May 3, 7:09 pm, Sri <[email protected]> wrote:
>
> > > This does not change any outcome. I tried this option also as you
> > > suggested.
> > > I am now questioning if it has to do something with the comm library
> > > implementation on Linux.
>
> > > On May 3, 12:37 pm, Thanasis <[email protected]> wrote:
>
> > > > Can you enable the RTS setting?
> > > > For example, before the Service.startService() call, add the following
> > > > line:
>
> > > > <serviceObject>.getSettings().SERIAL_RTSCTS_OUT = true;
>
> > > > and try once more with a big message.
>
> > > > On May 3, 6:45 am, Sri <[email protected]> wrote:
>
> > > > > If I talk to the modem through hyperterminal or minicom, I am able to
> > > > > send any length of characters upto 160 both in text and pdu mode. When
> > > > > I try to set the text mode in SMSServer.conf for the gateway, the code
> > > > > fails stating the modem does not support it. I am not sure what could
> > > > > be the problem. I would like to know if 'Ctrl+z' is sent properly at
> > > > > the end to terminate the user pdu data. I do not have any problems
> > > > > with the modem for sure. I confirmed that.
>
> > > > > On May 2, 10:15 am, blueboy <[email protected]> wrote:
>
> > > > > > Hi,
>
> > > > > > The PDU seems OK, but try to make the destination number
> > > > > > internatational (prefix with +)
> > > > > > and set the SMSC number
>
> > > > > > / DIgiloo
>
> > > > > > On 2 Maj, 17:04, Thanasis <[email protected]> wrote:
>
> > > > > > > Well, the PDU encoding is fine, you have 30 zeroes in your 
> > > > > > > message.
>
> > > > > > > Unless there is something really wrong with your comm/usb link, I
> > > > > > > can't image anything other than a modem fault...
>
> > > > > > > On May 2, 5:53 pm, Sri <[email protected]> wrote:
>
> > > > > > > > I had already posted it. I am just re-posting only that portion 
> > > > > > > > of it.
>
> > > > > > > > 8458   2009-05-02 05:49:02,744 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0:
> > > > > > > > =================================================
> > > > > > > > << SmsSubmitPdu >>
> > > > > > > > Raw Pdu:
> > > > > > > > 0011000A8112848895030000FF1E30180C0683C16030180C0683C16030180C0683C16030180
> > > > > > > >  C068301
>
> > > > > > > > SMSC Address: [Length: 0 octets]
> > > > > > > > First Octet: 11 [TP-MTI: (SMS-SUBMIT), TP-RD: (allow 
> > > > > > > > duplicates), TP-
> > > > > > > > VPF: (validity format, integer, TP-SRR: (No Status Report), 
> > > > > > > > TP-UDHI:
> > > > > > > > (no UDH)]
> > > > > > > > Message Reference: 00
> > > > > > > > Destination Address: [Length: 10 (0A), Type: 81 (10000001), 
> > > > > > > > Address:
> > > > > > > > 2148885930]
> > > > > > > > TP-PID: 00 (00000000)
> > > > > > > > TP-DCS: 00 (7-bit GSM Alphabet) (00000000)
> > > > > > > > TP-VPF: 10584 hours
>
> > > > > > > > User Data Length: 30 (1E) septets
> > > > > > > > User Data (pdu) :
> > > > > > > > 30180C0683C16030180C0683C16030180C0683C16030180C068301
> > > > > > > > User Data (decoded): [000000000000000000000000000000]
> > > > > > > > =================================================
>
> > > > > > > > 8460   2009-05-02 05:49:02,746 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: Sending Pdu:
> > > > > > > > 0011000A8112848895030000FF1E30180C0683C16030180C0683C16030180C0683C16030180
> > > > > > > >  C068301
> > > > > > > > 8462   2009-05-02 05:49:02,748 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: SEND :AT+CMGS=40(cr)
> > > > > > > > 8672   2009-05-02 05:49:02,958 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: clearBuffer() called.
> > > > > > > > 9675   2009-05-02 05:49:03,961 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: SEND :
> > > > > > > > 0011000A8112848895030000FF1E30180C0683C16030180C0683C16030180C0683C16030180
> > > > > > > >  C068301
> > > > > > > > 9710   2009-05-02 05:49:03,996 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: BUFFER: +CMS ERROR: 549
> > > > > > > > 9712   2009-05-02 05:49:03,998 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: RECV :+CMS ERROR: 549(cr)
> > > > > > > > 9713   2009-05-02 05:49:03,999 [main] WARN  
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: CMS Error 549: Retrying...
> > > > > > > > 12252  2009-05-02 05:49:06,538 [pool-1-thread-4] DEBUG
> > > > > > > > org.smslib.helper.Logger  - Running task: QueueManager 
> > > > > > > > [modem.ttyacm0]
> > > > > > > > 12715  2009-05-02 05:49:07,001 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: SEND :AT+CMGS=40(cr)
> > > > > > > > 12922  2009-05-02 05:49:07,208 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: clearBuffer() called.
> > > > > > > > 13925  2009-05-02 05:49:08,211 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: SEND :
> > > > > > > > 0011000A8112848895030000FF1E30180C0683C16030180C0683C16030180C0683C16030180
> > > > > > > >  C068301
> > > > > > > > 13967  2009-05-02 05:49:08,253 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: BUFFER: +CMS ERROR: 549
> > > > > > > > 13969  2009-05-02 05:49:08,255 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: RECV :+CMS ERROR: 549(cr)
> > > > > > > > 13970  2009-05-02 05:49:08,256 [main] WARN  
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: CMS Error 549: Retrying...
> > > > > > > > 15141  2009-05-02 05:49:09,427 [pool-1-thread-1] DEBUG
> > > > > > > > org.smslib.helper.Logger  - Running task: WatchDog
> > > > > > > > 16972  2009-05-02 05:49:11,258 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: SEND :AT+CMGS=40(cr)
> > > > > > > > 17178  2009-05-02 05:49:11,464 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: clearBuffer() called.
> > > > > > > > 17257  2009-05-02 05:49:11,543 [pool-1-thread-3] DEBUG
> > > > > > > > org.smslib.helper.Logger  - Running task: QueueManager 
> > > > > > > > [modem.ttyacm0]
> > > > > > > > 18180  2009-05-02 05:49:12,466 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: SEND :
> > > > > > > > 0011000A8112848895030000FF1E30180C0683C16030180C0683C16030180C0683C16030180
> > > > > > > >  C068301
> > > > > > > > 18218  2009-05-02 05:49:12,504 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: BUFFER: +CMS ERROR: 549
> > > > > > > > 18219  2009-05-02 05:49:12,505 [main] DEBUG 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: RECV :+CMS ERROR: 549(cr)
> > > > > > > > 18220  2009-05-02 05:49:12,506 [main] ERROR 
> > > > > > > > org.smslib.helper.Logger
> > > > > > > > - GTW: modem.ttyacm0: CMS Error 549: Quit retrying, message 
> > > > > > > > lost...
> > > > > > > > ===========================================================================
> > > > > > > >  ====
> > > > > > > > << OutboundMessage >>
> > > > > > > > ---------------------------------------------------------------------------
> > > > > > > >  ----
> > > > > > > >  Gateway Id: *
> > > > > > > >  Encoding: 7-bit
> > > > > > > >  Date: Sat May 02 05:49:02 CDT 2009
> > > > > > > >  SMSC Ref No: null
> > > > > > > >  Recipient: 2148885930
> > > > > > > >  Dispatch Date: null
> > > > > > > >  Message Status: FAILED
> > > > > > > >  Validity Period (Hours): -1
> > > > > > > >  Status Report: false
> > > > > > > >  Source / Destination Ports: -1 / -1
> > > > > > > >  Flash SMS: false
> > > > > > > >  Text: 000000000000000000000000000000
> > > > > > > >  PDU data: 
> > > > > > > > 30180C0683C16030180C0683C16030180C0683C16030180C068301
>
> > > > > > > > On May 2, 9:37 am, blueboy <[email protected]> wrote:
>
> > > > > > > > > Hi,
>
> > > > > > > > > What I tried to say, is that I miss the trace from the actual 
> > > > > > > > > sending
> > > > > > > > > error.
>
> > > > > > > > > / Hakan
>
> > > > > > > > > On 2 Maj, 15:25, Sri <[email protected]> wrote:
>
> > > > > > > > > > One more note that I am able to receive messages upto 160 
> > > > > > > > > > characters.
> > > > > > > > > > It is sending where I am having problems.
>
> > > > > > > > > > On May 2, 7:53 am, blueboy <[email protected]> wrote:
>
> > > > > > > > > > > Hi,
>
> > > > > > > > > > > I use Samba 75 without problems both in Windows and Linux.
>
> > > > > > > > > > > I can see in your log that geting the batter level gets 
> > > > > > > > > > > an error
> > > > > > > > > > > response
>
> > > > > > > > > > > > 8350   2009-05-02 05:49:02,636 [main] DEBUG 
> > > > > > > > > > > > org.smslib.helper.Logger
> > > > > > > > > > > > - GTW: modem.ttyacm0: SEND :AT+CBC(cr)
> > > > > > > > > > > > 8387   2009-05-02 05:49:02,673 [main] DEBUG 
> > > > > > > > > > > > org.smslib.helper.Logger
> > > > > > > > > > > > - GTW: modem.ttyacm0: BUFFER: ERROR
> > > > > > > > > > > > 8391   2009-05-02 05:49:02,677 [main] DEBUG 
> > > > > > > > > > > > org.smslib.helper.Logger
> > > > > > > > > > > > - GTW: modem.ttyacm0: RECV :ERROR(cr)
> > > > > > > > > > > >  Battery Level: 0%
>
> > > > > > > > > > > / Digiloo
>
> > > > > > > > > > > On 2 Maj, 12:59, Sri <[email protected]> wrote:
>
> > > > > > > > > > > > Here is the log with the text of only 0's. I do not 
> > > > > > > > > > > > have an exact
> > > > > > > > > > > > count on 0's. But it is more than 20 so that the 
> > > > > > > > > > > > sending fails.
>
> > > > > > > > > > > > Example: Send message from a serial gsm modem.
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib 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