10:58 pm
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 184.106.153.149 80 Connect to 184.106.153.149: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?
Thanks, Kerwin
10:41 pm

April 17, 2012

Hey Kerwin,
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 Online:
22 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
rw950431: 272
Vinod: 240
piajola: 95
turgo: 70
vespapierre: 63
Adarsh_Murthy: 62
Member Stats:
Guest Posters: 1
Members: 8665
Moderators: 1
Admins: 2
Forum Stats:
Groups: 3
Forums: 14
Topics: 1600
Posts: 5760
Newest Members:
JadeFloralde98, mgnthe54, Zain-Ul-Abidin, wellbeingcentresuk, Vamsi, frankmehlhopModerators: cstapels: 460
Administrators: Hans: 405, lee: 457