Show Posts

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


Messages - Lukas

Pages: [1]
1
µTasker general / connectin with name instead of ip
« on: August 26, 2008, 08:18:56 AM »
Hallo.
I have implemented the Netbios an it works. Clients can connect to my Serverapplication using the Netbios-name.
But is it also possible to connect to a server from my uTasker-Board with an name?
For example
fnTCP_connect(my_socket, SERVERNAME, port_number, 0, 0);

And for "SERVERNAME" I want to use the Netbiosname instead of the IP.
Thanks

2
Hallo Mark.
Yes, you are right, my board is an Olimex board.
I wondered why I can't find it. That's the reason, no interrupt line.
Ok, then I try to make my own line.  :)

Thanks
Lukas

3
Hi Mark.

I want to implement in my project an event when the link state change.
Whre are these Interrupts Events from? I looked through your code, but can't find it anywhere.

4
µTasker general / Re: write to a file after close
« on: May 14, 2008, 02:57:25 PM »
Thank you Mark for the fast help.
Great support.  :)

5
µTasker general / Re: write to a file after close
« on: May 14, 2008, 12:46:19 PM »
Ok, so I have to think about the best solution, your suggestion sounds good.

Is is possible to write to two different files? (which actually means to have two different file open at the same time)?

Reagrd
Lukas

6
µTasker general / Re: write to a file after close
« on: May 14, 2008, 10:09:21 AM »
Hallo Mark.
Working without Sub-File-System works fine and it suits to my project.

But one more question:
Is it possible to read out of a file before closing it (e.g. to copy values back to a buffer)?
I write my values over Ethernet (TCP/IP), when writing fails, I open a second file and write the value into it. Everytime a new value is ready for sending over Ethernet, I check if TCP connection still is down, if not, I want to write the actual value over TCP/IP and then rewrite all the "in-file-waiting" values. But I don't want to close the file in case that during rewriting the connections fails again. So is it possible to read out of a open file (allways the last value) and then put the pointer one value back, read again, and so on, until all values are written back (so the file is "empty")? If the connection fails again during writing, I want to write new values again into the file, but the startpostion should be behind the last unwritten value.

Regards
Lukas

7
µTasker general / Re: write to a file after close
« on: May 09, 2008, 06:30:53 AM »
Hi Mark.
Thanks for you great help.
Unfortunately it still does not work. I used your example, without any change. So it obviously must be a config problem?
If it helps here is what I see with DosFTP after doing the write operation and closing the file:
-rwxrwxrwx 1 502 502 143355 Jan 1 2007 y.???
Crashes means the file is limited to 4k (when I write not to file "6_...") or the value above (with writing to file "6...").

For now I removed the sub file system.
Reagrds
Lukas

8
µTasker general / Re: write to a file after close
« on: May 08, 2008, 03:22:11 PM »
I'm without any idea.
I read several times the FileSystemLPC23xx_336k.doc. I can copy larger files via FTP without problems. Tried also to different postions (as mention in the doc file I changed the file name), but it is allways the same. When the file reaches 4k it crashes.  ???

Regards

9
µTasker general / Re: write to a file after close
« on: May 08, 2008, 01:40:51 PM »
Hallo again.
How is it possible to write files larger than 4kbytes? (on the NXP 2378)
I open a file and write 300 * 32byte.
Code: [Select]
ptrFile = uOpenFile("z_log.txt");
uFileWrite(ptrFile, ucLog, 32, "z")
Of course I  open the file only 1 time.
I tried to name my file "6log.txt", tried uFileWrite..... with "z", with 'z', with zeros.
But every time I reach 4kbyte the system close the file and the values are wrong.

Regards
Lukas

10
µTasker general / Re: write to a file after close
« on: May 02, 2008, 07:33:24 AM »
Thank you for help Mark.
So I will try it as you described with making backups in RAM and writing every time new.

I see its a great forum with fast and qualified help.
Thanks.

Regards
Lukas

11
µTasker general / write to a file after close
« on: April 29, 2008, 02:25:45 PM »
Hallo.
I'm new in the uTasker world. I read the two docs about the filesystem, but still have a problem:
I open a new file:
Code: [Select]
   unsigned char *ptrLogfile = uOpenFile("Ulog.TXT");
   uFileWrite(ptrLogfile, data_log, 6, 0);
   uFileCloseMime(ptrLogfile, &ucMimeType);
When the file does not exist, it works. Otherwise not. Can't find why.
Also I can't write to the file a second time, after i close it.

Want to log the data from UART in a array, then write it to a file, send this file over TCP/IP. When the next value comes from the UART, want to open the file, add the new value to the existing and so on.
Someone can help me?

Regards
Lukas

Pages: [1]