read file from SD
#1
Posted 10 October 2012 - 07:34 PM
- Duefectu likes this
#2
Posted 10 October 2012 - 07:57 PM
#3
Posted 11 October 2012 - 09:28 AM
#4
Posted 11 October 2012 - 04:53 PM
#5
Posted 11 October 2012 - 07:31 PM
#6
Posted 12 October 2012 - 11:36 PM
#7
Posted 07 May 2013 - 09:15 PM
Hi
I tried to read 32kb from text and send with SPI, I read data line line, line is 896bytes.(35 part). When read is finished, I send 32kb data with SPI there is no problem but this way about 15 seconds. If I want to send another one I must wait 15seconds. What can I do?
#8
Posted 15 July 2013 - 06:40 PM
I also have tried to read a file line by line, i've got the excat same exception.
I have this exception once i hit position 2048. (my file is more than 5000 characters)
Is ther any limitation to 2048 chars per file?
#9
Posted 06 December 2013 - 12:11 PM
I have this exception Reading files in the 101 line of the file!
#10
Posted 06 December 2013 - 06:36 PM
So i guess you have the exact same issue as mine.
#11
Posted 06 December 2013 - 06:51 PM
@Nutz95, do you use Ethernet connection at same time, TCP Listener or Socket?
Today I making test without Ethernet connection, and it Works!
#13
Posted 06 December 2013 - 08:16 PM
To disable network, I unplug the Ethernet cable!
I re-flashed one ND+2, and now the same program Works!
I can't reproduce the error!
#14
Posted 06 December 2013 - 08:28 PM
Do you know if your network interface is configured in DHCP or with static IP once reflashed?
#15
Posted 06 December 2013 - 09:04 PM
I setup network interface to static in every start. I never use DHCP on this devices.
#16
Posted 09 December 2013 - 05:47 PM
Today I take the same error without any change on the code nor ND+2.
I changed StreamReader way by FileStream, and it works fine, but with more code.
#17
Posted 09 December 2013 - 07:42 PM
Thank you 'ill give it a look.
So you are saying the StreamReader is buggy but the FileStream is working?
#18
Posted 09 December 2013 - 07:54 PM
Right (or not), StremReader has a bug, at least for me. FileStream seams to work, at least for now!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users