Hello Mark, You are correct. Once the modem is busy sending messages, it will not be able to receive. That's why you should always leave some idle time to the modem.
On Sep 28, 5:55 am, Mark Thien <[email protected]> wrote: > I guess when the gatewayis busy sending message, the > InboundNotification will just not be able to read message from the > gateway. > > On Sep 28, 2:25 am, Mark Thien <[email protected]> wrote: > > > Hi guys, > > > I'm using smslib 3.4.2 and SE K800i as a gateway. I use it to send > > and read message from this gateway. I just modified the > > ReadMessage.java by putting SendMessage.java as a thread: > > > SendMessageThread sendMessageThread = new > > SendMessageThread > > (this.srv); > > ExecutorService threadExecutor = > > Executors.newFixedThreadPool > > ( 1 ); > > threadExecutor.execute(sendMessageThread); > > threadExecutor.shutdown(); > > System.out.println("Now Sleeping - Just Hit <enter> > > to stop > > service."); > > System.in.read(); System.in.read(); > > > public class SendMessageThread implements Runnable { > > > Service srv; > > > public SendSMS(Service srv) { > > this.srv = srv; > > } > > > public void run(){ > > while(true){ > > try { > > OutboundMessage msg = new > > OutboundMessage("+6591177135", "Hello > > Good day"); > > for(int x = 0; x< 10; x++) > > this.srv.sendMessage(msg); > > Thread.sleep(600000); > > } catch (InterruptedException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } catch (TimeoutException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } catch (GatewayException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } catch (IOException e) { > > // TODO Auto-generated catch block > > e.printStackTrace(); > > } > > } > > } > > > } > > > However, I tried to send like 10 messages at the same time. While > > sending, I use another phone to send an SMS to this gateway but the > > InboundNotification function never show anything and the message still > > remain in the gateway as I delete the message once read. After that, I > > tried sending another message to the gateway and this time 2 messages > > read by the InboundNotification function. > > > Appreciate anyone could help on this issue. > > > regards, > > Mark Thien --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
