picaxe.net serial port issues

Hi guys,

I decided to have a little play with my picaxe.net server today. What I was planning on doing was outputiing milford instruments compatible serial servo controller strings from the serial output of the picaxe.net. Strings would be in the format 255,0,127 etc

I have read the manual and see that this is possible using picaxe.net http commands 27 and 28. I worte a little cgi script to do this but for some strange reason the cgi script only sends the first 4 or 5 bytes out. The full string is never sent. I have tried to send individual bytes in sequence using code 27 and also encode the whole packet as a string using code 28. neither work.

Does anyone have any idea why this is the case?
 

Attachments

Technical

Technical Support
Staff member
Page 41 explains why only the first 4 bytes work (e.g 4 x 27s)
You will be better of with 28, as this is only one command but can contain multiple letters.
However you cannot use command break characters "/r" etc only raw text e.g. "text"

The maximum number of commands that can be processed in one GET is 4, e.g.
GET commands.cgi?1=1&1=2&1=3&1=4
If you wish to process more than 4 commands with one button click you must use
javascript to process 2 or more consecutive GET commands. Programming in
javascript is beyond the scope of this documentation.
The maximum length of each GET request is limited to 80 characters. This is
sufficient for normal use. Requests longer than 80 characters will not process
correctly.

 
Top