الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

مساعده بكود ارسال رسائل Sms بواسطه Gsm Modem

Featured Replies

بتاريخ:

مساء الخيرات

هذه اول مشاركه لي بمنتداكم المتميز

انا طالبه بمستوى الخامس كليه الهندسه

عندي كود لارسال رسائل SMSبواسطه GSM modem

من اجل استخدامه بمشروع تخرجي وهو smart home by using wireless sensor network

الكود الحمد الله شغال تمام بس لارسال رساله واحده فقط ...

بس الان اشتي ارجعه يرسل اكثر من رساله لاكثر من شخص

بحث بالنت عن امر مناسب باستخدام at command
ووجدت هدا الامر cmms
المشكله انهم مش عاملين معلومات موضحه عن هدا الامر اقصد مش عاملين structure معين
لكيفيه استخدامه غير
at+cmms=2

ولما حاولت ابحث عن هدا الامر لم اجد شي مفييييذ ماعدا مجرررد انتقاد لاستخدام هدا الامر وان الشبكه ماتدعمه

وانه مايرسل الا رساله واحده وكل الرسائل الباقيه تكون error

وماخرجت لطريق .............!!!!!!!

فارجو مساعدتكم بليييييييز الي عنده فكره ممكن تساااعدني او توضيح لبنيه امرcmms
او اي شي يخص هدا الموضوع وممكن يفيذني اتمنى انه مايبخل علي

بليييييييييز محتاجه تعاونكم معي باسرع وقت ممكن......

الكود مرفق ياريت تشوفونه.

ومشكورين مقدما

GSMSMSR.rar

تم تعديل بواسطة eng_sahar

  • بعد 4 شهور...
بتاريخ:

أختي الفاضلة مهندسه سحر

أشكر لك موضوعك فائق الاهمية ولكن اعتذر حيث اول مره اراه الان وأنا أتصفح

الافضل استخدام SMSLib API وهذا ال API يساعك في ارسال رسالة الي منفذ j2me وذلك بتحميلك ل Java comm API وكذلك RxTxComm API حيث ستجدي الملف المضغوط SMSLib.zip لتجدي في النهاية كلا من الملفين SMSLib.jar and SMSServrer.jar وبالتالي سيكون لديك الملفات log4j-1.2.15.jar
slf4j-simple-1.5.11.jar
slf4j-api-1.5.11.jar


كذلك ستجدي الكود الذي ستستخدميه للارسال



import org.smslib.IOutboundMessageNotification;
import org.smslib.OutboundMessage;
import org.smslib.Service;
import org.smslib.modem.SerialModemGateway;
class OutboundNotification implements IOutboundMessageNotification
{
public void process(String gatewayId, OutboundMessage msg)
{
System.out.println("Outbound handler called from Gateway: " + gatewayId);
System.out.println(msg);
}
}
public class SendMessage
{
public static void main(String args[]) throws Exception
{
Service srv;
OutboundMessage msg;
OutboundNotification outboundNotification = new OutboundNotification();
srv = new Service();
SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM51", 9600, "Nokia", "6310i");
gateway.setInbound(true);
gateway.setOutbound(true);
srv.setOutboundMessageNotification(outboundNotification);
srv.addGateway(gateway);
srv.startService();

// Send a message synchronously.
msg = new OutboundMessage("+919876543210", "user");
msg.setSrcPort(0);
msg.setDstPort(5000);
srv.sendMessage(msg);
System.out.println(msg);
System.out.println(msg.getPduUserDataHeader());
srv.stopService();
}
}



انظري الي http://smslib.org/

موفقه

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.