B4J Question Send and Receive SMS through GSM Modem

Discussion in 'B4J Questions' started by kokoroayo, Sep 4, 2016.

  1. kokoroayo

    kokoroayo Member Licensed User

    Hi all,

    I am working on a 2 part project for data collection from remote locations without 3G/GPRS data service. An android App that collects data from user and sends the data VIA SMS to a remote server. The server receives the SMS, processes the data and sends a status report to the user via SMS.

    I have successfully completed the android part or sending the SMS and it works fine. Tested ok with an existing VB application. but I cannot seam to figure out how to receive or send SMS in B4J.

    Kindly point me in the right direction. All I want to do is:
    1. Receive SMS in B4J through GSM Modem
    2. Send SMS in B4J through GSM modem

    I have read https://www.b4x.com/android/forum/threads/sending-an-sms.35356/#post-301314 but its not what I need

    Thank you.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    b4auser1 likes this.
  3. kokoroayo

    kokoroayo Member Licensed User

    Thanks Erel. Ill work around it and get back to you guys on this.
     
  4. Beja

    Beja Expert Licensed User

    Can you give some information about your modem?
    If it can be configured as transparent then as Erel said use AT commands. Otherwise you convert your data to byte array and follow the modem's protocol.. In this case you are using it as RF radio transceiver in both sides. But in between the modem takes care of the AT commands. So all depends on your modem type and functions.
     
  5. kokoroayo

    kokoroayo Member Licensed User

    Thanks Beja.
    Its a universal USB GPRS modem. I had developed an app for a friend using VB6 sending SMS with AT commands. That was a long time ago. Now I need to know how it is done in B4J.
     
  6. Beja

    Beja Expert Licensed User

    This is an old post. I just saw it for the second time by chance.. instead of replying at the bottom, hit the reply link because this way the person to whom you are reply can get notification and get back to you.
    If the problem is not solved then I recommend you use the F2003 GSM IP modem.. this way you send the text just like SMS and don't have to worry about AT commands. The configuration utility comes with the modem and you will need to configure it to work as transparent string modem, instead of the default byte.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice