I am starting a small topup buisness in my country and for different reasons, I had to use a usb modem to make the USSD request which my buisness depends on
The best modem I found is Huwaui e3531
usb modem
The way I was thinking on buidling my website is create a small deamon that constantly check the website for new orders and execute the USSD requests using mmcli
( that's the best utility I could find , but I am open to suggestions)
The problem with this solution is
I have to edit mmcli
source code to output the USSD response only ( the normal response have a lot of extra words in it) also mmcli cancel USSD request is not working ( not sure why) not to mention the different things that can go wrong and stop the deamon which affect the buisness
the second choice I have is using the Hilink
firmware which give me an API to make USSD request directly from my website (exactly what I am looking for), but that also have 2 small problems, the first is that it doesn't give me the option to cancel USSD request, and the second is that it's kind of slow to make the requests
So I am looking for something in the middle, the ability to have an API so I can run USSD commands from my website that it is fast and reliable
the best I could find is this project but I found after reading the source that it is using the Hilink
firmware API to work.