PDA

View Full Version : سوال: پخش فایل صوتی در gsm مودم



mosi20
شنبه 05 فروردین 1396, 22:34 عصر
سلام
قصد دارم با gsm مودم به یک شماره زنگ بزنم و سپس یک فایل صوتی را براش پخش کنم
الان میتونم تماس بگیرم با شماره ی مورد نظرم ولی فایل صوتی پخش نمیشه
کسی میتونه کمک کنه؟
الان ۳ تا پورت دارم
با پورت ۷ میتونم زنگ بزنم
144756
چیزی که تا الان پیدا کردم این هست ولی نمیتونم فایل صوتی را پخش کنم


For your modem, you have 3 COM port available. One is for sending AT command, the second one is for sending data (voice data), and the last one is for monitoring the asynchronous status change.

When you place a call (with ATD), you'll have to wait for "^CONN: 1, 0" on the monitoring port.

Then you need a sound source with 8KHz, 16 bit signed, 1 channel. Write 320 bytes of this source on the data port, each 20ms.

You'll also read 320 bytes of data from this port, each 20ms for the other side speaking.

When you get "^CEND: ...", then the call is terminated.

Beware of few catch however. You'll get "^CONN: 1, 0" even if the other side rejected you call. So, try to read data from the data port first to check if the other side is still there after a ^CONN message.

اگر کسی میتونه کمک کنه خواهشا دریغ نکنه
اگر هم هزینه ای در قبال راه اندازی این کار نیاز باشه مشکلی با پرداخت هزینه ندارم