Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6945989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:30:26+00:00 2026-05-27T13:30:26+00:00

Some Huawei 3g modems like mine (E1752) has ability to make and receive calls.

  • 0

Some Huawei 3g modems like mine (E1752) has ability to make and receive calls. I believe onboard there is PCM channel that can be used while making or receiving the calls but I do not have any more information on that.

I am using their app called the Mobile Partner which is a fairly complete app which supports making and receiving calls. But I want to build my own app which will run on Mac OS X. But I am not able to locate any documents detailing the Voice API and the onboard PCM channel. If anybody is aware of this please let me know.

Mobile Partner app with support for Voice Calls

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:30:26+00:00Added an answer on May 27, 2026 at 1:30 pm

    Voice is implemented as follows:- Your Modem registers total of 5 devices.The audio is sent through the serial port named “Huawei Mobile Connect – Application Interface”.

    Format of voice (in|out) data:

      wFormatTag = WAVE_FORMAT_PCM;
      nChannels = 1;
      nSamplesPerSec = 8000;
      nAvgBytesPerSec = 16000;
      nBlockAlign = 2;
      wBitsPerSample = 16;
      cbSize = 0;
    

    Block size of voice data in ReadFile or WriteFile operations (for COM port) must be set in 320 bytes. After each ReadFile must be WriteFile operation (in other choice buffers will be overflow and modem will restart after some time). Sample:

    //   BlockSize - size of buff for wave in|out operations (in my case 320*4 bytes)
    
       while (!bAllRead) {
        if (cInfo->hCom == INVALID_HANDLE_VALUE) {
         SetVoiceClosed(cInfo);//exit from thread
         return 0;
        }
    
        BOOL isRead = ReadFile(cInfo->hCom, cInfo->Header[counter].lpData + currBlocLength, 320, &nActualRead, &cInfo->o);
        if (isRead || (GetLastError() == ERROR_IO_PENDING && GetOverlappedResult(cInfo->hCom, &cInfo->o, &nActualRead, TRUE))) {
         if (nActualRead > 0) {
          // обратка
          nActualWrite = 0;
          int nActualWriteAll = 0;
          BOOL isWrite = WriteFile(cInfo->hCom, CurrBuffPtr + currBlocLength, nActualRead, &nActualWrite, &cInfo->oVoiceOut);
          while (isWrite || (GetLastError() == ERROR_IO_PENDING && GetOverlappedResult(cInfo->hCom, &cInfo->oVoiceOut, &nActualWrite, TRUE))) {
           nActualWriteAll += nActualWrite;
           if (nActualWriteAll >= nActualRead)
            break;
          }
          currBlocLength += nActualRead;
          if (currBlocLength >= BlockSize)
           bAllRead = true;
         }
         else {
          Sleep(25);// wait for voice data (resync)
          PurgeComm(cInfo->hCom, PURGE_TXABORT | PURGE_RXABORT | PURGE_TXCLEAR | PURGE_RXCLEAR);
         }
        }
        else {
         bAllRead = true;// there are no active call
         PurgeComm(cInfo->hCom, PURGE_TXABORT | PURGE_RXABORT | PURGE_TXCLEAR | PURGE_RXCLEAR);
        }
       }
    

    Something like that))). I do not find any useful info in Internet, so all that recommendation based on my experiments. I hope that was useful.

    PS: I hope wave in|out operations will not be a problem for you.

    PS2: Sorry for my English, I’m from Ukraine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some web applications, like Google Docs, store data generated by the users. Data that
Some WPF controls (like the Button ) seem to happily consume all the available
Some time ago a friend of mine told me not to use realloc because
Some time ago there was a field called targeting in the Post API Reference
Some Background: I make Box2D games using WCK, which is an alchemy port of
Some mediawikis are using a template or something like that to create twitter links
Some HTML tags like br and hr have no content and cannot have a
Some API returns me XmlCursor pointing on root of XML Document. I need to
Some things look strange to me: What is the distinction between 0.0.0.0, 127.0.0.1, and
Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.