modem

USB Modem is echoing back wrong characters

笑着哭i 提交于 2019-12-04 04:17:02
问题 I have a USB modem connected on port ttyACM0. When I open an application like Minicom and try to send it some commands, the echo back is not always what I type. For example, if I type in "A", I get "@". If I type in "T", I do get "T". It seems that the serial port is stripping the least significant bit off of my transmission. For example: A = @ B = B C = B D = D E = D F = F ... and so on. I assume there is something wrong with my serial port configuration, but I've tried what seems like every

Giving PHP permission to access COM port

心已入冬 提交于 2019-12-04 03:26:17
问题 I'm creating a php script that connects to a 3G modem connected via serial connection on COM5. I'm getting the following error and I believe it is because php does not have r/w access to COM5: Warning: fopen(COM5:) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\SMStest\test2.php on line 9 // mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=off $fp = fopen ("COM5:", "w+"); if (!$fp) { echo "Uh-oh. Port not opened."; } else { $e = chr(27); $string = $e . "A

Call a computer with another computer (Dial up Modem)

夙愿已清 提交于 2019-12-03 16:30:56
is it possible to call Computer A with Computer B in Same Country via theirs dial up modems? i mean use computer as telephone (with Dial Up modem) i no need transferring voice just : 1) Computer A Dialing Computer B (with the Phone number) 2) Computer B is see that computer A is calling. 3) Computer B Answer. please putting sample code or link for more information. if there is any library exist that made my work easier introduce to me. i don't want to involving with AT Commands. does this library help me? Have I Use TAPI? thanks. Yes. As long as both computers have compatible modems. You'll

Communicating serial port on windows with php

天涯浪子 提交于 2019-12-03 13:26:55
问题 I'm working with an application which connects to Huawei 3G Modem using COM ports in php. Here is my code: <?php include("sms.php"); $sms = new sms(); $device = "COM11"; exec("mode $device BAUD=9600 PARITY=n DATA=8 STOP=1 xon=off octs=off rts=on"); $comport = fopen($device, "r+b"); if ($comport === false){ die("Failed opening com port<br/>"); }else{ echo "Com Port Open<br/>"; } //Set non-blocking mode for writing //stream_set_blocking($comport, 0); $sms->_blocking($comport,0); $atcmd = "AT\r"

Sending SMS AT commands to 3G modem using PHP

寵の児 提交于 2019-12-03 08:33:19
I'm having trouble sending commands to a 3G modem connected on COM5. The modem is accepting the connection and receiving the commands. But there is something wrong (I think it is in my syntax/AT commands). In hyperterminal the commands are returning errors. If anyone can help I would gladly appreciate it. -------CODE BELOW------- <? exec("mode COM5 BAUD=9600 PARITY=N data=8 stop=1 xon=off"); $fp = fopen ("\\.\COM5:", "r+"); //$fp = dio_open('COM5:', O_RDWR | O_NOCTTY | O_NONBLOCK); if (!$fp) { echo "Uh-oh. Port not opened."; } else { $string = "AT+CMGF=1"; $string = $string."OK"; $string =

How do you send AT GSM commands using python?

 ̄綄美尐妖づ 提交于 2019-12-03 07:39:58
问题 How do i send AT GSM commands using python? Am able to do this quite easily using Delphi and some comport component (TComport), but how do i talk to my modem using python? Gath 回答1: I do it like this with pyserial: import serial serialPort = serial.Serial(port=1,baudrate=115200,timeout=0,rtscts=0,xonxoff=0) def sendatcmd(cmd): serialPort.write('at'+cmd+'\r') print 'Loading profile...', sendatcmd('+npsda=0,2') Then I listen for an answer... 回答2: I don't know if there is an AT module, but you

What is the best design for polling a modem for incoming data?

孤人 提交于 2019-12-03 06:54:58
I have a GSM modem connected to my computer, i want to receive text messages sent to it using a python program i have written, am just wondering what is the best technique to poll for data. Should i write a program that has a infinite loop that continuously checks for incoming sms's i.e within the loop the program sends the AT commands and reads the input data. or do modems have a way of signaling an application of an incoming data(sms). Am trying to imagine a cellphone is just a GSM modem, and when an sms is received, the phone alerts you of the event, or does the phone software have an

Source for a good, simple, soft modem library [closed]

你。 提交于 2019-12-03 03:56:55
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I a doing a weird project, and looking to convert some short, simple datagrams to audio - send them over a (physical) radio - then to receive and decode them on another device (think - embedded devices with audio out jack and GSM/GPRS-type radios). (I have to use a physical, existing external radio). Does anyone

Communicating serial port on windows with php

白昼怎懂夜的黑 提交于 2019-12-03 03:37:01
I'm working with an application which connects to Huawei 3G Modem using COM ports in php. Here is my code: <?php include("sms.php"); $sms = new sms(); $device = "COM11"; exec("mode $device BAUD=9600 PARITY=n DATA=8 STOP=1 xon=off octs=off rts=on"); $comport = fopen($device, "r+b"); if ($comport === false){ die("Failed opening com port<br/>"); }else{ echo "Com Port Open<br/>"; } //Set non-blocking mode for writing //stream_set_blocking($comport, 0); $sms->_blocking($comport,0); $atcmd = "AT\r"; fputs($comport, $atcmd); sleep(5); // Sleep for response from the modem // Set blocking mode for

How do you send AT GSM commands using python?

别来无恙 提交于 2019-12-02 21:06:45
How do i send AT GSM commands using python? Am able to do this quite easily using Delphi and some comport component (TComport), but how do i talk to my modem using python? Gath I do it like this with pyserial: import serial serialPort = serial.Serial(port=1,baudrate=115200,timeout=0,rtscts=0,xonxoff=0) def sendatcmd(cmd): serialPort.write('at'+cmd+'\r') print 'Loading profile...', sendatcmd('+npsda=0,2') Then I listen for an answer... I don't know if there is an AT module, but you can use pyserial to communicate with a serial port. 来源: https://stackoverflow.com/questions/672366/how-do-you-send