Still hung up w/colorpicker, but getting close.

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Still hung up w/colorpicker, but getting close.

Postby peeni waali » Fri May 09, 2008 7:55 pm

I'm almost there with the colorpicker sketch. Many of the pieces seem to be in place, and yet... when I submit requests to change LED color, nothing happens and I get this kind of output on the serial monitor:

serial port ready
XPort ready
GET /?coloâ=%23339999 HTTP/1.1
Requested! No. 0
GET /?coloâ=%23003399 HTTP/1.1
Requested! No. 1
GET /?coloâ=%23333366 HTTP/1.1
Requested! No. 2

Also, I couldn't get the XPort Direct + to connect just using TX and RX like the example, I had to use four pins as in the sketch -- TX, RX, Reset, and CTS.

Has anyone gotten it all to work? Any ideas? Oh and one more piece of info, during XPort setup the last two choices after "DisConnTime," are "SendChar 1" and "SendChar 2" -- should those be set at a specific value?

Thanks!
peeni waali
 
Posts: 10
Joined: Wed Mar 26, 2008 3:23 pm

Postby adafruit » Fri May 09, 2008 11:39 pm

huh looks like your URL is just a little wonky...id check the javascript and your browser to make sure its sending proper data
User avatar
adafruit
 
Posts: 10546
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Postby sirusdv » Sun Jun 15, 2008 1:13 am

I'm actually getting the exact same error

DGET /?coloâ=%2333FFCC HTTP/1.1


I'll let you know if I find out what misconfiguration it is.
sirusdv
 
Posts: 1
Joined: Sun Jun 15, 2008 1:12 am

Postby emdot » Fri Jun 20, 2008 9:02 pm

Hi Sirusdv and Peeni Waali,

I'm getting the same thing. The url was posting incorrectly, but even when I manually enter a url of, say, "/?color=0033FF" the serial monitor still shows "GET /?coloâ=0033FF HTTP/1.1".

Were you able to make any progress?

Best,
mike
User avatar
emdot
 
Posts: 4
Joined: Thu Jun 12, 2008 12:56 am
Location: Emeryville, CA

Postby emdot » Sat Jun 21, 2008 10:16 pm

Looks like I've got problems like myacobucci's in this forum thread... http://forums.ladyada.net/viewtopic.php?t=5323&postdays=0&postorder=asc&start=31

I'll try futzing with the baud rate tomorrow to see what I get... onward!
User avatar
emdot
 
Posts: 4
Joined: Thu Jun 12, 2008 12:56 am
Location: Emeryville, CA

Same Problem - RESOLOUTION!

Postby fwelm » Sun Jun 22, 2008 3:52 am

I managed to get it to work by lowering the baud rate to 38400.

In the sketch for both arduino & xport, and in the xport configuration through telnet.

Arduino setup becomes:

void setup() {
pinMode(redPin, OUTPUT); // sets the pins as output
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);

analogWrite(redPin, EEPROM.read(RED_EADDR)); // Write current values to LED pins
analogWrite(greenPin, EEPROM.read(GREEN_EADDR));
analogWrite(bluePin, EEPROM.read(BLUE_EADDR));

Serial.begin(38400);
Serial.println("serial port ready");
xport.begin(38400);
xport.reset();
Serial.println("XPort ready");
}


Settings for Xport as follows:

*** Channel 1
Baudrate 38400, I/F Mode 4C, Flow 00
Port 00080
Connect Mode : D4
Send '+++' in Modem Mode enabled
Show IP addr after 'RING' enabled
Auto increment source port disabled
Remote IP Adr: --- none ---, Port 00000
Disconn Mode : 80 Disconn Time: 00:03
Flush Mode : 77

-fwelm
fwelm
 
Posts: 5
Joined: Sat Jun 07, 2008 8:31 pm

Postby peeni waali » Fri Jun 27, 2008 9:33 am

I hadn't gotten this issue sorted out before I got distracted by building a new bike and left my arduino to languish. I'm glad to see a couple of more posts -- I'll see if I can't get things running with this new information. Cheers!
peeni waali
 
Posts: 10
Joined: Wed Mar 26, 2008 3:23 pm

Postby peeni waali » Mon Jun 30, 2008 2:31 pm

The baud rate tweak fixed it. Thanks!
peeni waali
 
Posts: 10
Joined: Wed Mar 26, 2008 3:23 pm

Postby aussie_nick » Tue Jul 22, 2008 2:20 pm

Any ideas of how to make it working with XPort Direct +? This module has a web server of its own and it seems to get in the way...
aussie_nick
 
Posts: 2
Joined: Tue Jul 22, 2008 1:46 pm

Postby aussie_nick » Tue Jul 22, 2008 3:11 pm

aussie_nick wrote:Any ideas of how to make it working with XPort Direct +? This module has a web server of its own and it seems to get in the way...


Well, I was too fast... After some reading, I found out, I should first telnet at port 9999 and configure Channel 1 settings according to the sketchbook configuration for XPort. It works fine now!!
aussie_nick
 
Posts: 2
Joined: Tue Jul 22, 2008 1:46 pm


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: ArekKindAcere and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[23]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]