Search found 333 matches

by v8dave
Thu May 20, 2010 7:56 am
Forum: NetBurner Software
Topic: Strange variable corruption
Replies: 14
Views: 7726

Re: Strange variable corruption

Yes. The string being written to it is only 27 bytes and I declared 40 bytes.

I'll try increasing this and see what effect it has.

Dave...
by v8dave
Thu May 20, 2010 7:15 am
Forum: NetBurner Software
Topic: Strange variable corruption
Replies: 14
Views: 7726

Re: Strange variable corruption

Hi, TxtBuffer is declared local to the function. NetworkWaitPtr is global to the module. I setup memset to clear TxtBuffer on entry to the function and after the sprintf call, it only contained the text and the rest, some 12 bytes was NULL. With these 2 lines commented out, the rest of the code runs...
by v8dave
Thu May 20, 2010 7:05 am
Forum: NetBurner Software
Topic: PPP connection fails
Replies: 5
Views: 3742

PPP connection fails

I just came across this code snippet when searchng for PPP. It is also similar to what is in my examples. http://forum.embeddedethernet.com/viewtopic.php?f=7&t=308&p=1077&hilit=ppp#p1077 I am using someting similar and having issues getting the modem to connect. The SIM has been tested a...
by v8dave
Thu May 20, 2010 12:12 am
Forum: NetBurner Software
Topic: Strange variable corruption
Replies: 14
Views: 7726

Strange variable corruption

My code has been running perfectly until I added the following code to it today. TimeDelay = NetworkWaitTime[NetworkWaitPtr]; sprintf(TxtBuffer, "Waiting %d seconds to retry", (int) TimeDelay); NetworkWaitTime and NetworkWaitPtr are declared globally to the function as follows: int Network...
by v8dave
Tue May 18, 2010 2:59 am
Forum: NetBurner Software
Topic: I2C problems with 5270
Replies: 2
Views: 2154

Re: I2C problems with 5270

I found some issues with the I2C today on the MOD5234. I was always getting lots of timeouts and only the very occasional reply from the devices on the bus. I noticed when hooked up to a logic analyser that there was no bus activity after the first 2-3 attempts. The bus just kept reporting no idle, ...
by v8dave
Mon May 17, 2010 7:49 pm
Forum: NetBurner Software
Topic: Sharing QSPI
Replies: 4
Views: 3118

Re: Sharing QSPI

After receiving a request to post how this done from Jonp I thought I would post for anyone else interested in how I got it working. By the way, the same principle applies if you are using I2C etc in different tasks. First of all I created a semaphore for the taks that will use SPI. Then I simply pe...
by v8dave
Thu May 13, 2010 9:00 pm
Forum: NetBurner Software
Topic: Autoupdate by Netburner itself
Replies: 6
Views: 4308

Re: Autoupdate by Netburner itself

Thanks Chris, I also came across code that can update the module via the SD card, which I have built into my hardware. I can download the file and write this to the SD card and then use the code to programme the unit. This has checksum tests and will fail if there is any errors. I like your idea of ...
by v8dave
Wed May 12, 2010 9:58 pm
Forum: NetBurner Software
Topic: Autoupdate by Netburner itself
Replies: 6
Views: 4308

Re: Autoupdate by Netburner itself

I think I may have found a solution. There is a sample in the examples that allows to download from an FTP server.!! Going to try and get this to work. Cheers, Dave... EDITED... MMmmmm. Not quite what I was looking for but it may give me clues on how to do this. This is actually an FTP server on the...
by v8dave
Wed May 12, 2010 9:18 pm
Forum: NetBurner Software
Topic: Autoupdate by Netburner itself
Replies: 6
Views: 4308

Autoupdate by Netburner itself

Hi all, I like the idea of the autoupdate feature but as my hardware is going to be connected by GPRS and not the Ethernet connection, it is not possible to use the standard auto update feature as the device's IP address is not visible on the GPRS network, well, not without a dedicated setup with th...
by v8dave
Wed May 12, 2010 10:02 am
Forum: NetBurner Software
Topic: Strange operation with Quadrature on eTPU
Replies: 8
Views: 5190

Re: Strange operation with Quadrature on eTPU

Thanks RG, I am busy respinning the prototype PCB anyway to sort some IO timing on the LCD controller so I will add in a couple of Schmitt triggers on the outputs of the encoder. I'll knock something up temporarily on the existing PCB to give it a quick try out tomorrow. Thanks for all your suggesti...