March 25, 2012
Hello. I am using an Arduino Leonardo board to comm to a Roving Networks RN-171 module. I have sucessfully joined my wireless network and can do TCP sessions on the network. I tried to use the simple twitter post sketch from tutorial though I had to modify it since I'm not using Ethernet shield, and the communication is by serial rather than SPI. No success yet.
I then tried to just do it manually by typing on my keyboard, using the serial connection to the RN-171 (I have a program that passes through serial from PC to a separate serial connection going to the RN-171). Again, I am able to do TCP connections on my network this way so I know the channel is working.
But when I try to open a connection I get a 400 message.
Keystroke capture from serial program is below: My entry is the open command. Note that Roving Networks uses space as a command delimiter. Note that the RN-171 responds Connect to etc with a :80 for the port.
open 18.104.22.168 80 Connect to 22.214.171.124:80 <2.32> *OPEN*<html> <head><title>400 Bad Request</title></head> <body bgcolor="white"> <center><h1>400 Bad Request</h1></center> <hr><center>nginx/0.8.53</center> </body> </html> *CLOS*
So I'm not able to open the connection to even try the other stuff. Any ideas?
April 17, 2012
Chances are the problem is that the Roving Networks chip sends the *OPEN* string once it has established a TCP connection. Web servers don't know what this string means, nor do they expect it. So you get a 400 error. When you are setting up your Roving Networks chip, tell it "set comm remote 0" which will tell the chip not to send the *OPEN* string. I don't know what you are using to configure your chip, but it looks like there might be a few other bits that need flipping along the way.
FWIW, how random was it to check out the ThingSpeak forum today and see your post? I was once in a beginning electronics class you held the basement of your home. Hope this response helps.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:JadeFloralde98, mgnthe54, Zain-Ul-Abidin, wellbeingcentresuk, Vamsi, frankmehlhop
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457