Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - CSB

1
Web platform / Re: Linux commandline tools.
Search for the MPLAB X beta, it's multi-platform and will include the commandline binaries,  make sure you get the C30 compiler also.
3
Web platform / Re: Can it support any database?
Okay, so if you want dynamic webpages, you have two options: Make those changes on the server side, or make them on the client side.

For the first option, there are a lot of options currently in use on the web, ASP, JSP, and PHP are just a few, however none of those have compact, and open sourced implementations which are available, much less ported to the platform. Microchip's HTTPPrint option is basically the only established option you have, though you could implement something yourself, and suit it to your application.

Since we're on an embedded platform, I'd be inclined to do the latter, and off load that work to the user's web browser. AJAX is basically the only option here, or really Javascript using XML HTTP Requests... despite its name, AJAX is sometimes not asynchronous, or involving XML formatted data. The main advantage of AJAX besides the above is that it can be used to incrementally update the view.

Since you've been very ineffective at describing what you're trying to do, I can't give you any specific advice, however: Will either of these options allow you to modify a database running on the PIC? Nope, since you can't run a database on the PIC. Could you effect the tables on a a database running elsewhere, though.

If you want to take input from an HTTP method, look at the Microchip Solutions Help File for the TCP/IP stack... look for executePost and executeGet, or similar...
4
Web platform / Re: Can it support any database?
I'm not absolutely familiar with PHP, but if its name is not utterly meaningless, I can tell you that it won't be a viable solution either, unless you intend to write a PHP interpreter for the PIC.

I gave Microchip's HTTPPrint solution, but found it rather cumbersome and limited, so I eschewed it for AJAX, and have had success with my project using that technique. Your mileage may vary.
5
Web platform / Re: Why choose web platform
Before you get too far, though, you should do a feasibility study for your proposed target platform, e.g. is there an available stack/libraries on the platform, and is the uC capable enough... If you don't have the libraries you need, will you write them yourself, etc.
6
Web platform / Re: Why choose web platform
If you already have experience with mBed and Arduino, and simply want to get the project done, it'll almost definitely be easier to stick with what you know. But if you want to learn a new uC, IDE, libraries, stack, etc, then the web platform will scratch that itch.

I chose the web platform for my project because I already had experience with lesser PICs, and mBed's HTTP server functionality turned out to be pretty broken, and since it's closed, that put me up a creek without a paddle.

Just my 2 cents.
7
Web platform / Re: FT232R Drivers?
[quote author="ian"]It is a setting in your terminal. Usually it will have several options, but VT-102 is usually best for the Bus Pirate.[/quote]
Putty doesn't have those options, except for a section called "Change the sequences sent by: [. . .] The Function keys and keypad." I'll try some of the terminal applications you recommended when I get home.

This is particularly frustrating, since I've never had an issue using one of my PL2003 (or some prolific chip) usb -> rs232 adaptors when connecting to either a discrete or MAX232 level shifter connecting to a PIC, using putty. I'm tempted to cut the traces and wire in one of those solutions instead, but I don't need USART for my project, and it'll only be for development conveniences.
8
Web platform / Re: FT232R Drivers?
Can you explain terminal emulation? Is this a setting in my application, or a driver setting?
9
Web platform / Re: FT232R Drivers?
Thanks, Ian.

I am currently using the ones from the executable installer (http://www.ftdichip.com/Drivers/CDM/CDM20802_Setup.exe) and just getting those umlat'd 'y's
Are the port settings I am using correct for dp-wp-stackdemo.v0a.hex from looking at the code, I believe they are correct. (See previous post.)

I'm currently using putty, but can anyone recommend a different terminal software to try? I've used putty for serial in the past, and actually prefer it, but if something else will work, I'm willing to try it.
10
Web platform / Re: FT232R Drivers?
Ian, you didn't link the drivers.

dp-wp-stackdemo.v0a.hex echoes back umlated 'y's, the same thing I was seeing before.

I am using 115200 Baud, 8 data bits, 1 stop bit, no flow control, and no parity.
11
Web platform / Re: FT232R Drivers?
Well, unless I can type on my terminal and see the USB LED flash, I'm inclined to believe that nothing is going to work.
12
Web platform / Re: FT232R Drivers?
Anyone have working drivers? Again, the USB light doesn't even light up when I try to send characters to it.
13
Web platform / FT232R Drivers?
Hi folks,

I got started on my Web Platform based project last weekend, and have made loads of head-way, but I haven't been able to get the UART working, and I suspect a driver issue. Currently, the USB LED isn't even lighting up as I try to transmit to my virtual COM port with a terminal application, while previously, the LED was strobing, and I was receiving umlauted 'y' characters back, even though my code should have been echoing the received characters.

Regardless, what I think I need is a good procedure for (preferably) removing whatever drivers I currently have installed, and installing good ones for the FT232R on the Web Platform. I am using Windows XP, and also OSX 10.6.6, so help with either would be fine. A verified .HEX file with simple UART functionality would also be helpful, I will also need the settings for use with that program would also be needed.

Any help appreciated...

Thanks.
14
Web platform / Re: SD card Demo locks up
Ron, I believe that Microchip simply does not offer eval/lite versions of old compilers, and that these are actually different installers than those that were used to install the corresponding eval/lite compilers.

I was actually able to get an eval/lite version of the v3.23 C30 installed, so don't fret over me anymore. ;)
15
Web platform / Re: SD card Demo locks up
Am I missing something?

All of those installers (at least the v3.23 C30 ones I tried) require a license key, since there is no evaluation/lite option. Or is there a work around, or file on that page that I am overlooking?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01612425544session_write_close ( )...(null):0
20.01642557120ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01642557896Database_MySQL->query( ).../DatabaseHandler.php:119
40.06222696608Database_MySQL->error( ).../Db-mysql.class.php:273