Ich kann Dir ja mal zeigen, was vorher passiert ist. Das ist die Debug-Ausgabe von YASDI mit 3 Geräten, als ich die Netzadresse big endian übertragen habe. Hier wird 2 Geräten dieselbe Netzadresse zugeteilt.
Repository: Path to config file = ''
Repository: Using configuration file './yasdi.ini'
YASDI Library V1.7.2 (Win32)
Copyright 2001 - 2006 SMA Technologie AG
Compile time: 00:02:52 Jul 5 2008
TSchedule::DoScheduling...
YASDI Generic IP Driver (Win32) V1.7.2
Copyright 2002-2006 SMA Technologie AG
Compile time: 00:03:02 Jul 5 2008
YASDI main thread starts....
IP: Added new peer: 127.0.0.1:24272
Using Protocol SMANet for bus driver IP1...
YASDI Master Library V1.7.2 (Win32)
Copyright 2001 - 2007 SMA Technologie AG
Compile time: 00:02:57 Jul 5 2008
TStateInit::OnEnter
TSMADataMaster::AddCmd( MC_DETECTION ): Command queued...
TSMADataMaster::OnEnter() Kommando MC_DETECTION bearbeiten ...
TStateDetect::OnEnter
TStateDetect:: Sende CMD_GET_NET_START
Timer started (5 seconds)...
TStateDetect::OnEnter() end....
TSMAData::SendThreadExecute(): Send Packet to driver 'IP1' (Cmd = CMD_GET_NET_START, NetAddr=[0x0000])
IP::ip_SendToPeer(): Send packet to peer 127.0.0.1:24272
TSMADataMaster::OnTransfer(): 100 percent transmitted...
TObjManager_CheckMapSize: Allocate space for 100 entries...
TStateDetect::OnIOReqPktRcv() Device answer: Device type='WR700-07' SN= 9380933 NetAddr=[0x0100], prot=SMANET
Timer started (5 seconds)...
TSMADataMaster::OnTransfer(): 100 percent transmitted...
TStateDetect::OnIOReqPktRcv() Device answer: Device type='WR700-07' SN= 9380934 NetAddr=[0x0100], prot=SMANET
Timer started (5 seconds)...
TSMADataMaster::OnTransfer(): 100 percent transmitted...
TStateDetect::OnIOReqPktRcv() Device answer: Device type='WR700-07' SN= 9380935 NetAddr=[0x0100], prot=SMANET
Timer started (5 seconds)...
TSMAData::OnReqTimeout(): timeout
TStateDetect::OnIOReqEnd(): Currently detected devices in plant: 3; Searching for 3 devices!
TStateConfig::OnEnter
TPlant::CheckNetAddrCollision()
TStateConfig::CheckNextDevice(): Net address collision of Device 'WR700-07 SN:9380933'! Changing...
TStateConfig::CheckNextDevice(): Net address of Device 'WR700-07 SN:9380933' is out of the allowed range! Allowed:[0x1..0xff] => Changing...
TPlant::GetUniqueNetAddr(): alte Netzadresse: [0x0100]
TPlant::GetUniqueNetAddr() New Adsresse: [0x101]
TStateConfig::CheckNextDevice(): Configure Device 'WR700-07 SN:9380933' to address 0x101...
Timer started (4 seconds)...
TSMAData::SendThreadExecute(): Send Packet to driver 'IP1' (Cmd = CMD_CFG_NETADR, NetAddr=[0x0000])
IP::ip_SendToPeer(): Send packet to peer 127.0.0.1:24272
TSMADataMaster::OnTransfer(): 100 percent transmitted...
TStateConfig::OnIOReqPktRcv() !
TStateConfig::OnIOReqEnd(): Device configured.
TPlant::CheckNetAddrCollision()
TStateConfig::CheckNextDevice(): Net address collision of Device 'WR700-07 SN:9380934'! Changing...
TStateConfig::CheckNextDevice(): Net address of Device 'WR700-07 SN:9380934' is out of the allowed range! Allowed:[0x1..0xff] => Changing...
TPlant::GetUniqueNetAddr(): alte Netzadresse: [0x0100]
TPlant::GetUniqueNetAddr() New Adsresse: [0x102]
TStateConfig::CheckNextDevice(): Configure Device 'WR700-07 SN:9380934' to address 0x102...
Timer started (4 seconds)...
TSMAData::SendThreadExecute(): Send Packet to driver 'IP1' (Cmd = CMD_CFG_NETADR, NetAddr=[0x0000])
IP::ip_SendToPeer(): Send packet to peer 127.0.0.1:24272
TSMADataMaster::OnTransfer(): 100 percent transmitted...
TStateConfig::OnIOReqPktRcv() !
TStateConfig::OnIOReqEnd(): Device configured.
TPlant::CheckNetAddrCollision()
TStateConfig::CheckNextDevice(): Net address of Device 'WR700-07 SN:9380935' is out of the allowed range! Allowed:[0x1..0xff] => Changing...
TPlant::GetUniqueNetAddr(): alte Netzadresse: [0x0100]
TPlant::GetUniqueNetAddr() New Adsresse: [0x102]
TStateConfig::CheckNextDevice(): Configure Device 'WR700-07 SN:9380935' to address 0x102...
Timer started (4 seconds)...
TSMAData::SendThreadExecute(): Send Packet to driver 'IP1' (Cmd = CMD_CFG_NETADR, NetAddr=[0x0000])
IP::ip_SendToPeer(): Send packet to peer 127.0.0.1:24272
TSMADataMaster::OnTransfer(): 100 percent transmitted...
TStateConfig::OnIOReqPktRcv() !
TStateConfig::OnIOReqEnd(): Device configured.
TStateDetect::OnEnter
TStateDetect::OnEnter(): Device detection finished....
TStateDetect ==> 3 Device(s) in plant, searching 3 device(s)!