View previous topic :: View next topic |
Author |
Message |
fileplayer
Joined: 09 Nov 2005 Posts: 18 Location: 32339 Espelkamp
|
Posted: Wed Jan 11, 2006 5:33 pm Post subject: Hello Barry (Localport) |
|
|
OK, that Run fine, now the Next Problem :
If the Programm running how is ist possible to make a NEW TCPCONFIG ?
The reasen (Grund) is with the old IP Number i recive an UDP Paket and store it in the EEprom at a special Location. That means it is the NEW IP Number.
Now i have 2 ways: 1. i make a asm Jump to org 0. But the tcp PCB have NOT a RESET. Sometimes it go and somtimes it is wrong. For a Wokaround i have the Reset Wire of the tcp Board connect on a Output Pin, so first i this output to Ground (for a Time) . After them it is OK.
The same is like the Watchdog.
Is is possible without a jump to org 0 to make a RE-Config the TCP ?
=============================================
Offcouse i Remember on You. It was a fine Day. After the visit by You,
we going Downtown and Buy 2 Big Round Cheese. Every Time we eat some of that we think on "Almera Haeven".
And the least is I Wisch You Happy New Year ( I Now to Late, but...)
Grüsse aus Deutschland
Günter (Günni)
Wisch You all _________________ Fileplayer |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Wed Jan 11, 2006 7:13 pm Post subject: |
|
|
Hi,
From the Helpfile:
Quote: |
The CONFIG TCPIP statement may be used only once.
When you want to set the TCP/IP settings dynamicly for instance when the settings are stored in EEPROM, you can not use constants. For this purpose, SETTCP must be used.
SETTCP can take a variable or a constant for each parameter.
When you set the TCP/IP settings dynamicly, you do not need to set them with CONFIG TCPIP. In the CONFIG TCPIP you can use the NOINIT parameter so that the MAC and IP are not initialized which saves code.
|
Frank. |
|
Back to top |
|
|
fileplayer
Joined: 09 Nov 2005 Posts: 18 Location: 32339 Espelkamp
|
Posted: Wed Jan 11, 2006 7:39 pm Post subject: Config TCPIP |
|
|
Hi Frank,
I now that Listing on the Helpfile, but it is so that i control over I2C so in this case it is NOT possible (first) to write NoInit, and 2te i have no statement that is call SetTCP. I'm think so, but is it wrong what i now, so tell me more (in fact i will NOT stupid death).
Günni _________________ Fileplayer |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Wed Jan 11, 2006 11:29 pm Post subject: |
|
|
If you do not have the statement SETTCP you are using an older version of Bascom.
Upgrade to the latest version 1.11.8.1 |
|
Back to top |
|
|
bfdegraaff
Joined: 15 Nov 2005 Posts: 72 Location: Brazil
|
Posted: Fri Jan 13, 2006 10:59 am Post subject: |
|
|
Hallo Günni,
Indeed make sure you have the latest version, then see
DHCP2.bas file in this ZIP:
http://www.mcselec.com/index.php?option=com_docman&task=doc_download&gid=101&Itemid=54
Place the NOINIT= 1 option just before the TWI address
Config Tcpip = Int0 , Localport = 68 , Tx = $55 , Rx = $55 , Noinit = 1, TWI...
And then settcp... I haven't tested it myself, but if it does not work
see the SETTCPREGS and GETTCPREGS in BASCOM AVR help. And refer
to the IIM7010 developers manual.
Regards - From Almera Haeven - Barry _________________ ______
Barry de Graaff is a micro electronics student,
formerly on work emplacement at MCS Electronics.
www.barrydegraaff.tk/edb |
|
Back to top |
|
|
zolsi
Joined: 24 Jan 2006 Posts: 51
|
Posted: Fri Mar 10, 2006 12:08 pm Post subject: Easy tcp/ip twi problems |
|
|
wrong post |
|
Back to top |
|
|
|