Scaning for modules on velbus

hi,

i want to scan all the address for finding my modules on the velbus.
so i wrote this small piece of c# code:

for ( i =48 ; i <= 95 ; i++) { packet_out.Priority = PacketPriority.Low; packet_out.Rtr = true; packet_out.Address = i; velBusConnector1.SendPacket(packet_out); }
i only get responce from one module. Only module with adress 48 replies.

When i exame the rawpacket data i get [0]=0 , [1]=251 , [2]=48, [3]=64 and [4] to [13] is 0.

is this correct?

if my code is wrong can you show me how you would program the scan routine in c#

thx

Stis

hi to all,

i have found the solution to my problem

for ( i =48 ; i <= 95 ; i++) { Packet packet_out = new Packet(); --------> added this line solved my problem packet_out.Priority = PacketPriority.Low; packet_out.Rtr = true; packet_out.Address = i; velBusConnector1.SendPacket(packet_out); }

I still need to do some checking up on that library. The checksum is in some cases not always calculated correctly.