Animalector Registered: 22/04/09
Posts: 33
|
|
| |
Reply with quote | #1 |
My aim is to use the uLCD-32032-P1T as a datalogger, with the I2C function on the picaso MCU controlling a bunch of external sensors. I was planning on storing the data into a local text file saved onto the uSD card. So far all the documenation suggests this is achievable. However, Part the functionality of the logger will include docking the LCD into a USB cradle and automatically downloading the data to a PC. This may require that the uSD card be available as a winbdows FAT drive, without being removed from the LCD. Is this possible? The alternative is to write into 4DGL a communications protocol, and do the necessary read from the uSD manually, and then transmit, byte by byte to the PC via the USB-CE5 interface. It would be an easier task (for the windows software) if I were able to map the uSD as a drive. Anybody's thoughts on this would be appreciated. Thanks Andy __________________ MicroLec Industries P/L
http://www.microlec.com.au |
| Loading... | | |
ESPsupport Moderator
Registered: 27/01/09
Posts: 104
|
|
| |
Reply with quote | #2 | The USB-CE5 emulates a serial port and cannot be 'reconfigured' to behave like a disk drive.
The answer to your question lies in the file transfer protocol used in the uDrive, see the command set document in the left hand side here http://www.4dsystems.com.au/prod.php?id=22
That command set has already been implemented in 4DGL. However, the source code has not yet been made publicly available. If it is still not available when you need it, just ask. |
| Loading... | | |
Animalector Registered: 22/04/09
Posts: 33
|
|
| |
Reply with quote | #3 |
Understood... Serial communications protocol won't be all bad, just extra work I was hoping to avoid. It really is just on request of particular filename, read file byte, send file byte, until EOF. etc.. In the short term for prototype, I can just make the uSD removable and plug it into a reader  Thanks Andy __________________ MicroLec Industries P/L
http://www.microlec.com.au |
| Loading... | | |
kramrit Registered: 30/04/09
Posts: 17
|
|
| |
Reply with quote | #4 | Hey i am having big problem with micro lcd320 PMD2.I connected it without the UART using a RS232(USB to serial(DB9) connector).It works,the welcome screen flashes but when i try 2 download the sample program from 4dgl workshop it gives out error saying either"device not found" or "device not detected".I rechecked the pmmmc loaders .Also i checked and verified all com ports.Still it doesnt work.How to make it work nw?Is it necessary for me to buy the UART/microcontroller?Is there any other alternative?Also how to connect 4*4 keypad to the LCD module!!Thanks. |
| Loading... | | |
Animalector Registered: 22/04/09
Posts: 33
|
|
| |
Reply with quote | #5 |
Hi there, a standard USB to serial converter won't work (I don't think) because you need to have a reset pulse sent to the screen. See : This COnnection PDF for information. Basically they take the DTR line and rig it up the pass through a pulse. The CE5 USB module does this also, except there is no RS232 chip since the DTR is a signal available out of the FTDI IC... Don't want to confuse you but I would recomment buying a USB-CE5 for $30something or building yourself the MAX232 circuit shown in the PDF (simple) goodluck. Andy __________________ MicroLec Industries P/L
http://www.microlec.com.au |
| Loading... | | |
Animalector Registered: 22/04/09
Posts: 33
|
|
| |
Reply with quote | #6 |
I would like to see that 4DGL command set for accessing the SD card in the 4DGL picaso based displays. please email me details. Thanks in advance, Andy __________________ MicroLec Industries P/L
http://www.microlec.com.au |
| Loading... | | |
Atilla

Moderator
Registered: 18/03/07
Posts: 580
| |
Animalector Registered: 22/04/09
Posts: 33
|
|
| |
Reply with quote | #8 |
I've seen those instructions, and they'll do the job, however i thought that you may have had a 4dgl emulator, much like your serial platform emulator, that simulates the command set specified here: Thanks, Andy __________________ MicroLec Industries P/L
http://www.microlec.com.au |
| Loading... | | |
Atilla

Moderator
Registered: 18/03/07
Posts: 580
|
|
| |
Reply with quote | #9 | Andy, There is a 4DGL emulator in the works, unfortunately can't give you an ETA. Maybe early next year. __________________ Atilla |
| Loading... | | |