AT+HTTPINIT
OK
AT+HTTPPARA="URL","http://api.openw⸮athermap.org"
OK
AT+HTTPACTION=0
OK
+HTTPACTION: 0,713,0
AT+HTTPTERM
OK
---------------------------
AT+HTTPINIT
OK
AT+HTTPPARA="URL","http://api.openw⸮
ERROR
AT+HTTPACTION=0
+HTTPACTION: 0,702,0
OK
AT+HTTPTERM
OK
I coding in Arduino IDE for SIMCom A7670C, I follow "A76XX Series_HTTP(S)_Application Note_V1.03" datasheet and "76xx AT Command" datasheet.
I have a problem with HTTPACTION, error code is 713 and 702. How should I solve it?
I used ESP8266 connect with SIMCom.
Related
I want to know if there is a way to send via TCP IP by AT+CIPSEND command more than 1460 bytes, I trying to send to my server 2460 bytes, but give me error, I read in this app note, that is not possible to send more than 1460 bytes, I trying to search if there is another way to send this data to my server by a webserver that i made, I using a ESP32 and SIM800L, if I using the ESP32 with wifi, it made OK, and trying with AT commmands with sim800L, and give me the error, if I try with less than 1460 bytes, it made ok, I don't post any code, because, my question is more in what AT commands use for do this task, sorry foy my bad english
AT
OK
AT+CIURC=1
OK
AT+CREG?
+CREG: 0,1
OK
AT+CFUN=1
OK
AT+CMGF=1
OK
AT+CGMM
SIMCOM_SIM800L
OK
AT+CGMI
SIMCOM_Ltd
OK
AT+CMEE=2
OK
AT+CGACT?
+CGACT: 1,0
+CGACT: 2,0
+CGACT: 3,0
OK
AT+CIPSHUT
SHUT OK
AT+CGATT=1
OK
AT+CSTT="www.telcel.com"
OK
AT+CIICR
OK
AT+CIFSR
10.0.20.168
AT+CIPSTART="TCP","XXX.XX.XXX.XXX","xxxx"
OK
OK
CONNECT OK
AT+CIPSEND?
+CIPSEND: 1460
OK
AT+CIPSEND=2665
+CME ERROR: operation not allowed
CLOSED
Hello we're trying to get an usb-hid device working on linux system.(Currently Rpi-2B Buildroot 64bit)
But dmesg shows an error on device plugged in, while other keyboards/mouse work fine.
The error -22 isn't found with googling so I am stucking here.
Wondering what the code means or where to find the full error list. Or what our hw team can do to fix this.
Does anyone can help? Thanks in advance.
-22 is EINVAL defined as:
#define EINVAL 22 /* Invalid argument */
(usb subsystem returns negative error codes)
This error text comes from these lines:
ret = hid_add_device(hid);
if (ret) {
hid_err(hid, "can't add hid device: %d\n", ret);
goto err_connection_disable;
}
You can try to increase linux kernel loglevel to find the exact cause.
For a few days now, after using gofmt ("gofmt -w test.go"), I have received an error message with which I cannot do anything:
Error: size of test.go changed during reading (from 18786 to 18742 bytes)
This message appears, although I did not change the program code, but only added a comment. What am I doing wrong?
i am new on VB.Net and dont know the methode for my purpose.
i have application called Monitor.exe running on command line(cmd.exe) with parameter
monitor.exe -o -i
and the output on command line have 3 line like this on success status
status device ready
device running 344 times
complete
or output like this if the process have an error
device error 3
please check the connection cable
My purpose is :
i want run this command line running with ordinary cmd.exe without showing the cmd.exe window with button
then i want to grab the result like "complete 344 times" when the status is complete as label text
or grab "error" word when the status have and error as a label text
your help would be very appriciate.
thanks
I am a beginner in expect...I have written a small script which has to login to a router and execute few commands..
But somehow i am finding that even though when i have used send "admin show platform" THRICE, it is only working twice for me.. I only get the output of admin show platform twice.
Can anyone check the code and point me where actually i am screwing up the code..
Gsaxena#
Gsaxena#
Gsaxena# ./testTool
spawn /usr/bin/ksh
telnet 5.28.7.103
$ telnet 5.28.7.103
Trying 5.28.7.103...
Connected to 5.28.7.103.
Escape character is '^]'.
User Access Verification
Username:
Username: lab
Password:
RP/0/RP0/CPU0:Billorani#debug ospf ospf1 adj
Mon Oct 14 17:16:06.144 UTC
**RP/0/RP0/CPU0:Billorani#show platform**
Mon Oct 14 17:16:06.416 UTC
Node Type PLIM State Config State
------------- ----------------- ------------------ --------------- ---------------
x/x/x0 xxxxG N/A IN-RESET PWR,NSHUT,MON
**RP/0/RP0/CPU0:Billorani#show platform**
Mon Oct 14 17:16:06.416 UTC
Node Type PLIM State Config State
------------- ----------------- ------------------ --------------- ---------------
x/x/xxx0 xxxxG N/A IN-RESET PWR,NSHUT,MON
RP/0/RP0/CPU0:Billorani#
Gsaxena#
Gsaxena#
Gsaxena#
Gsaxena#
Gsaxena#
#!/usr/bin/expect
set timeout 30
set hostcut "Bil"
sleep 5
set timeout 5
spawn /usr/bin/ksh
send "telnet 5.8.7.103\r"
expect ".*\'\^\]\'\. *"
send "\r"
expect "Username\:"
send "lab\n"
expect "Password\: "
send "lab\n"
sleep 10
expect -re "RP\/.\/.*\/CPU.:$hostcut.*#"
send "debug ospf ospf1 adj\n"
expect -re "RP\/.\/.*\/CPU.:$hostcut.*#"
send "admin show platform\n"
expect -re "RP\/.\/.*\/CPU.:$hostcut.*#"
send "admin show platform\n"
expect -re "RP\/.\/.*\/CPU.:$hostcut.*#"
send "admin show platform\n"
I should really be placing this not in an actual answer but in a comment, since I do not have a final answer for you, but it seems comments can only be left by folks who have been around for some time (there's a minimum reputation before you can leave them).
Anyways, what I wanted to suggest was that you add exp_internal 1 somewhere near the start of your script. This will provide a ton of useful debugging information, and will most likely point at what is going on. Feel free to post it here if you need help with it.
I can't tell what is wrong from the information you posted... nothing seems obviously at fault. One thing I would do differently is instead of spawning a Korn shell process and then send a telnet commando to it, I would just spawn the telnet command directly (less code, less resources). But that is not what is bothering you, so never mind that.
I'm not familiar with the OS you're logging in to... is that Cisco IOS XR? I'm baffled by the fact that you issue an admin show platform command, yet only show platform shows in your stdout? Also, what's the deal with the dual asterisks (**) some prompts show, while others don't?
One last thing, which may seem dumb, but... can you manually access the device and issue those 4 exact commands, in that exact order?
Regards,
James
In your code
send "admin show platform\n"
Use "\r" instead of "\n"