Cannot use local network - Reason: Unknown error (0)

Discussion in 'C-Bus Toolkit and C-Gate Software' started by deandob, Mar 19, 2005.

  1. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Hi,

    I need some help with my C-Bus installation. I have been adding new units to my existing C-BUS installation that has been working fine for a year. I'm using C-BUS v2 hardware and software v2.7.6. When I go to install a new Saturn switch the software can't find the new device to initialise. So I'm thinking there is something wrong with either the new wiring or the Saturn unit, so I disconnect it and try to initialise it on a known good circuit, and try a different unit - still no good.

    However the problem is not with the new unit or cable, because when I try to scan the local network, I get the following error:
    Could not get the project name
    Reason: Unknown Error (0)

    While troubleshooting, I disconnect everything except the PC interface, relay with powersupply & burden, and I still get the same error, and still cannot initialise the new device when connecting it to just the relay & PC interface. However, I have no troubles using the c-bus, everything is working fine, I can even change device configurations and program it across the network, I just can't scan the local network and can't detect new devices.

    I'm thinking I've got some kind of software corruption - has anyone else seen this error and symptoms and can offer help? The diagnostics in the software do not seem to capture network error events - is there any other software that I should try to diagnose the fault? My next step is to upgrade the software to the new toolset to try that.

    Although I'm not a qualified installer, I'm an electronic engineer specialising in software development, and have to date had no problems with understanding, installing & setting up the c-bus (great system BTW!).

    Regards,
    Dean
     
    deandob, Mar 19, 2005
    #1
  2. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    There was a system change made recently

    There was one change I made to the system in recent times - I used the new C-BUS DLL to interface from Visual Basic to C-BUS, which worked without any problems, but it was a change made since I last successfully installed a new unit. Removing the DLL made no difference - I still can't scan the local network.

    Regards,
    Dean
     
    deandob, Mar 19, 2005
    #2
  3. deandob

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia

    Hi Dean,

    Is the Network actually communicating? Is the "C-Bus" LED illuminated on your output units for example?

    I have seen this error before.. and I do feel that there is an issue in the 2.7.x software that causes it but I've never been able to determine what it is..

    You could try setting the project name again on the network.. Select Set Project from the menu.. (I forget which, and I dont have V2 installed anymore :D ).
     
    Duncan, Mar 19, 2005
    #3
  4. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Hi Duncan,

    Thanks for the quick reply.

    Yes, the C-BUS is all up, all lights normal (orange) on the PC Interface, and all other C-BUS functions working fine, including changing the programming for units already installed (but not working for new units to install). I have tried to reset the project as you suggested, which did something with no error, but I still get the same problem not being able to view local network or install new units.

    I suspect its a software corruption issue - would you suggest re-installing the software or maybe upgrading to the latest toolkit?

    Regards,
    Dean
     
    deandob, Mar 19, 2005
    #4
  5. deandob

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia
    Absolutely :D
     
    Duncan, Mar 19, 2005
    #5
  6. deandob

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    If you've got a second PCI you might like to try connecting to your C-Bus network through that. Then do the "Set Project" to all units from there.

    Something else to try is changing the unit address of your PCI (you'll need a second PCI to do that if you can't scan from the first). You might find that the Saturn unit is lurking on the same unit address as the PCI.
     
    Newman, Mar 20, 2005
    #6
  7. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Thanks guys.

    I'll try disconnecting the latest Saturn units connected and if that does not work I'll update the toolkit. Unfortunately I only have one PCI to try, so hopefully I can get it working without needed to swap the PCI.

    Regards,
    Dean
     
    deandob, Mar 20, 2005
    #7
  8. deandob

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,391
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    Check that the PCI does NOT have unit address FF (hex) or 255 (decimal).

    If it does, move it to something else and try again. As Newman suggested, if the new switch is at 255 then it and the PCI might be having a small fight with each other. This *should not* happen but its worth a quick sanity check and fix the really obvious...


    Oh yes - the CBM.DLL (free Windows driver DLL) has nothing to do with Toolkit or the V2 install s/w. HAving it there or removing it won't make any difference. Just don't have any programs running that are built on top of it, because there is only one PCI & serial port :)
     
    Last edited by a moderator: Mar 21, 2005
    ashleigh, Mar 21, 2005
    #8
  9. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Thanks Ashleigh,

    I can't tell the actual PCI address as it wont go into local network mode, however I can download to the network the database configuration for the PCI, which is set at address 000, so its not at 255. However I still am not able to see the local network.

    Is there other network diagnostic software I can use? As mentioned before, everything is working perfectly except that I can't initialise new units, and I cant run the local network settings, even if I disconnect all cables except a power supply relay & the PCI.

    Next stop is uploading the new toolkit software.

    Regards,
    Dean
     
    deandob, Mar 21, 2005
    #9
  10. deandob

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,391
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    You will find a diagnostic utility here:

    http://www.clipsal.com/cis/downloads.php3#Diag

    It relies on a working PCI...

    Might also be an idea to check that you have enough power supply capacity, they you have a single (or two at most) clock generators, and a single burden.
     
    ashleigh, Mar 21, 2005
    #10
  11. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Ashleigh,

    I have stripped down to the following with nothing else connected:
    - PCI unit with hardware burden
    - 8 channel relay with clock
    - 8 channel relay with power supply & no clock

    Like in my fully configured network, I can program the devices but cannot use local network (same error), or initialise new devices. This is why I think the problem is with the software.

    Regarding clocks, I thought it is OK to have multiple clocks, one clock will automatically become the master?

    I'll try the software diagnostics once I get the email from clipsal to download the software.

    I tried the toolbus software, looks like I'm not having much luck tonight, I got a java install error that it thought I had another instance of java running (and I didn't, I have a stripped down laptop), and when I manually try to start the c-gate software I get an error that I need version 1.4.2 or greater to run, possibly because of the installation problem - however I have yet to RTFM for the toolkit manual....

    C:\Program Files\Java\j2re1.4.2_07\bin>java -jar c:\clipsal\c-gate2\cgate.jar
    Clipsal C-Gate(TM) v2.1.1 (build 2027)
    Java Version 1.4.2 or later required for C-Gate operation.
    You must install a later version of Java to operate C-Gate.

    C:\Program Files\Java\j2re1.4.2_07\bin>java -version
    java version "1.4.2"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

    :confused: I think I'll give up for the night and try again tomorrow...

    Regards,
    Dean
     
    deandob, Mar 21, 2005
    #11
  12. deandob

    Duncan

    Joined:
    Jul 23, 2004
    Messages:
    925
    Likes Received:
    0
    Location:
    Salinas de Garci Mendoza, Bolivia

    Hi Dean,

    Could you navigate back to C:\ and execute "Java -version" again please?
     
    Duncan, Mar 23, 2005
    #12
  13. deandob

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,391
    Likes Received:
    24
    Location:
    Adelaide, South Australia
    Re clock generators:

    Yes you can have more than one. The arbitration takes a while when you have too many, so its a good idea to have 1 or 2, and try to avoid 3 or more.

    Hardware burden is good - though some of those units may also include a software burden, and it may be enabled. If thats the case you may have too much burden present.
     
    ashleigh, Mar 24, 2005
    #13
  14. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Duncan,

    I dont have the java exe in my path, so can't run c:\>Java. I'm sure something is screwed with the install due to the toolkit install error complaining about having Java already running (when it wasn't). I'll look at it again on the weekend, should not be too hard to work out what is wrong with the toolkit install, although I'm a Windows / .NET guy, Java is no good for me :eek:

    Ashleigh,

    Software burdens all setup correctly here.

    I'll get the new toolkit working on the weekend, but if this also produces the same error the only thing left to blame is the PCI, although as it works fine for everything except device initialisation & local network view points to more a software problem.

    Happy Easter!

    Regards,
    Dean
     
    deandob, Mar 24, 2005
    #14
  15. deandob

    deandob

    Joined:
    Nov 20, 2004
    Messages:
    20
    Likes Received:
    0
    Working now

    Hi Guys,

    I have the new toolkit sort of working now, and as suspected, the problem with the v2 software was some sort of software corruption, as the toolkit has no problems with installing new units and scanning the local network.

    However, the toolkit install was not "plug and play", it took a little while to get it up and running, and have found out the following:

    1) The Java install error during the toolkit install complaining of another version of Java running was a very obscure problem. It turns out that Java during install copies directories around to check if other instances of java have a lock on the java files. If the installer detects a file handle open on the java executables it assumes java apps are running, however with XP Professional and the file indexing service running, the index service will index (for file system access speed) the new file, opening a handle, just when Java install is checking to see if there are open handles. So Java thinks that another Java app is running. To fix this, turn off the index service on the installation disk, which can be reset if you select the properties of the disk and deselect the indexing service checkbox. I found this gem buried in a Sun knowledgebase article for a related error.

    2) The toolkit is very slow to open (up to 3 minutes) and experienced numerous timeouts when starting and when enumerating project items, to the point of making the application crash. The only way I got it stable was to import my v2 project data, and once it caches the database in memory it is much faster. Even then, sometimes while opening the toolkit, I get timeout errors and the application becomes unstable and I have to reboot. I am running the v5 java runtime, not sure if this is the reason.


    --------------------------------------------------------------------------------
    TITLE
    --------------------------------------------------------------------------------
    Application Error
    --------------------------------------------------------------------------------
    USER COMMENTS
    --------------------------------------------------------------------------------

    --------------------------------------------------------------------------------
    CUSTOM INFO
    --------------------------------------------------------------------------------
    Software Version = 1.1.5
    Software Build = 126

    --------------------------------------------------------------------------------
    ERROR MESSAGE
    --------------------------------------------------------------------------------
    Exception 'ECGateCommandTimeOut' in module CBusToolkit1_1.exe at 000F90F2
    TcgcProjectDir

    Module: CIS_TCGateCommand, Source: CIS_TCGateCommand.pas, Line 548
    Procedure: TThreadCommandSynchroniser.ProcessResponses
    --------------------------------------------------------------------------------
    CALL STACK
    --------------------------------------------------------------------------------
    Call stack:
    :004FA0F2 [CBusToolkit1_1.exe] TThreadCommandSynchroniser.ProcessResponses (CIS_TCGateCommand.pas, line 548)
    :77E73887 [kernel32.dll]
    Recursive call (3 times):
    :004FA0F2 [CBusToolkit1_1.exe] TThreadCommandSynchroniser.ProcessResponses (CIS_TCGateCommand.pas, line 548)
    :77F58A3A [ntdll.dll]
    :771C073E [OLE32.DLL]
    :77F58A3A [ntdll.dll]
    :771C073E [OLE32.DLL]
    :771C0762 [OLE32.DLL]
    :00402C95 [CBusToolkit1_1.exe] SysFreeMem (GETMEM.INC, line 1123)
    :00402CBD [CBusToolkit1_1.exe] SysFreeMem (GETMEM.INC, line 1127)
    :0040288F [CBusToolkit1_1.exe] TryHarder (GETMEM.INC, line 946)
    :0040776D [CBusToolkit1_1.exe] DynArrayHigh (system.pas, line 10344)
    :00411EE6 [CBusToolkit1_1.exe] TMultiReadExclusiveWriteSynchronizer.WriterIsOnlyReader (sysutils.pas, line 7071)
    :00411FD9 [CBusToolkit1_1.exe] TMultiReadExclusiveWriteSynchronizer.EndWrite (sysutils.pas, line 7103)
    :0075AA75 [CBusToolkit1_1.exe] TBaseThreadWriteSocket.SetTimeout (CIS_TThreadWrappedIndySocket.pas, line 627)
    :00411FD9 [CBusToolkit1_1.exe] TMultiReadExclusiveWriteSynchronizer.EndWrite (sysutils.pas, line 7103)
    :0075A673 [CBusToolkit1_1.exe] TBaseThreadWriteSocket.WriteBuffer_EndWrite (CIS_TThreadWrappedIndySocket.pas, line 498)
    :0075A8CF [CBusToolkit1_1.exe] TBaseThreadWriteSocket.WriteLine (CIS_TThreadWrappedIndySocket.pas, line 565)
    :0075B018 [CBusToolkit1_1.exe] TThreadCommandSocket.ProcessCommand (CIS_TThreadWrappedIndySocket.pas, line 865)
    :007593A3 [CBusToolkit1_1.exe] TcgConnectionAdministrator.SendCommand (CIS_TcgConnectionAdministrator.pas, line 42)
    :004F9787 [CBusToolkit1_1.exe] InternalSendCommand (CIS_TCGateCommand.pas, line 201)
    :004F9899 [CBusToolkit1_1.exe] TCGateCommand.CommandExecute (CIS_TCGateCommand.pas, line 245)
    :0040288F [CBusToolkit1_1.exe] TryHarder (GETMEM.INC, line 946)
    :00402A99 [CBusToolkit1_1.exe] SysGetMem (GETMEM.INC, line 1023)
    :00402ABC [CBusToolkit1_1.exe] SysGetMem (GETMEM.INC, line 1026)
    :00403075 [CBusToolkit1_1.exe] ReallocMem (system.pas, line 1281)
    :0040288F [CBusToolkit1_1.exe] TryHarder (GETMEM.INC, line 946)
    :00402A99 [CBusToolkit1_1.exe] SysGetMem (GETMEM.INC, line 1023)
    :00402ABC [CBusToolkit1_1.exe] SysGetMem (GETMEM.INC, line 1026)
    :00411E5A [CBusToolkit1_1.exe] TMultiReadExclusiveWriteSynchronizer.Create (sysutils.pas, line 7051)
    :00403E8D [CBusToolkit1_1.exe] ClassCreate (system.pas, line 4171)
    :00403EC2 [CBusToolkit1_1.exe] AfterConstruction (system.pas, line 4207)
    :00403A92 [CBusToolkit1_1.exe] TObject.Create (system.pas, line 3517)
    :00403E8D [CBusToolkit1_1.exe] ClassCreate (system.pas, line 4171)
    :00403EC2 [CBusToolkit1_1.exe] AfterConstruction (system.pas, line 4207)
    :00403E8D [CBusToolkit1_1.exe] ClassCreate (system.pas, line 4171)
    :005113ED [CBusToolkit1_1.exe] TCBusInstallationCGateAgent.CommandProjectDir (CIS_TCBusInstallationCGateAgent.pas, line 101)
    :00403E8D [CBusToolkit1_1.exe] ClassCreate (system.pas, line 4171)
    :0051191B [CBusToolkit1_1.exe] TCBusInstallationCGateAgent.LoadProjects (CIS_TCBusInstallationCGateAgent.pas, line 186)
    :00511179 [CBusToolkit1_1.exe] TCBusInstallationCGateAgent.AgentLoad (CIS_TCBusInstallationCGateAgent.pas, line 49)
    :004FDD73 [CBusToolkit1_1.exe] TPersistableObject.StorageLoad (CIS_TIdentifiableObject.pas, line 109)
    :00653FE3 [CBusToolkit1_1.exe] TCBusInstallation.LoadProjects (CIS_TCommonCBus.pas, line 3056)
    :00743CCA [CBusToolkit1_1.exe] TnmInstallation.LoadInstallation (CIS_TnmInstallation.pas, line 411)
    :00743EF6 [CBusToolkit1_1.exe] TnmInstallation.OnNodeFocus (CIS_TnmInstallation.pas, line 488)
    :005D2820 [CBusToolkit1_1.exe] TExplorerManager.TreeViewChange (CIS_TExplorerManagerUnit.pas, line 1632)
    :0048FA7B [CBusToolkit1_1.exe] TCustomTreeView.Change (comctrls.pas, line 8312)
    :0048F47E [CBusToolkit1_1.exe] TCustomTreeView.CNNotify (comctrls.pas, line 8145)
    :77F944A8 [ntdll.dll]
    :77F57D70 [ntdll.dll]
    :77F58A3A [ntdll.dll]
    :77D445C8 [user32.dll]
    :77D447D4 [user32.dll]
    Recursive call (2 times):
    :00416EE7 [CBusToolkit1_1.exe] TThreadList.UnlockList (Classes.pas, line 2125)
    :0042FC49 [CBusToolkit1_1.exe] FreeMemoryContexts (Graphics.pas, line 4566)
    :00416EE7 [CBusToolkit1_1.exe] TThreadList.UnlockList (Classes.pas, line 2125)
    :0042FC49 [CBusToolkit1_1.exe] FreeMemoryContexts (Graphics.pas, line 4566)
    :0044AF92 [CBusToolkit1_1.exe] TControl.WndProc (Controls.pas, line 4227)
    :0044E697 [CBusToolkit1_1.exe] TWinControl.WndProc (Controls.pas, line 5731)
    :00463D1E [CBusToolkit1_1.exe] StdWndProc (Forms.pas, line 1459)
    Recursive call (2 times):
    :77F944A8 [ntdll.dll]
    :77F57D70 [ntdll.dll]
    :77F58A3A [ntdll.dll]
    Recursive call (2 times):
    :77F944A8 [ntdll.dll]
    :77F57D70 [ntdll.dll]
    :77F58A3A [ntdll.dll]
    :77D445C8 [user32.dll]
    :00545C60 [CBusToolkit1_1.exe] initialization (TB2Common.pas, line 927)
    :77D445C8 [user32.dll]
    :77D447D4 [user32.dll]
    :77D4CBE6 [user32.dll]
    :0048F79C [CBusToolkit1_1.exe] TCustomTreeView.WndProc (comctrls.pas, line 8224)
    :0044AD15 [CBusToolkit1_1.exe] TControl.Perform (Controls.pas, line 4152)
    :00445B95 [CBusToolkit1_1.exe] FindControl (Controls.pas, line 1615)
    :0044E841 [CBusToolkit1_1.exe] DoControlMsg (Controls.pas, line 5774)
    :0044F050 [CBusToolkit1_1.exe] TWinControl.WMNotify (Controls.pas, line 5955)
    :0044AF92 [CBusToolkit1_1.exe] TControl.WndProc (Controls.pas, line 4227)
    :0044E697 [CBusToolkit1_1.exe] TWinControl.WndProc (Controls.pas, line 5731)
    :77F58BCD [ntdll.dll]
    :77F59037 [ntdll.dll]
    :77F944CB [ntdll.dll]
    :77F58BCD [ntdll.dll]
    :77F59037 [ntdll.dll]
    :77F944CB [ntdll.dll]
    :77F58BCD [ntdll.dll]
    :77F59037 [ntdll.dll]
    :77F944CB [ntdll.dll]
    :77F58BCD [ntdll.dll]
    :77F59037 [ntdll.dll]
    :7735DB76 [comctl32.dll]
    Recursive call (2 times):
    :7735D4AE [comctl32.dll]
    :00416EE7 [CBusToolkit1_1.exe] TThreadList.UnlockList (Classes.pas, line 2125)
    :0042FC49 [CBusToolkit1_1.exe] FreeMemoryContexts (Graphics.pas, line 4566)
    :0044E1DF [CBusToolkit1_1.exe] TWinControl.MainWndProc (Controls.pas, line 5612)
    :00463D1E [CBusToolkit1_1.exe] StdWndProc (Forms.pas, line 1459)
    :77D67AD7 [user32.dll]
    :77D6CCD4 [user32.dll]
    :77D445BD [user32.dll]
    :00545C60 [CBusToolkit1_1.exe] initialization (TB2Common.pas, line 927)
    :77D447D4 [user32.dll]
    :77F75DA3 [ntdll.dll]

    --------------------------------------------------------------------------------
    REGISTERS
    --------------------------------------------------------------------------------
    Main Thread ID = 00000904, Current Thread ID = 00000904
    Registers:
    EAX = 0012E6D8 CS = 001B EIP = 77E73887 Flags = 00000202
    EBX = 0104FC1C SS = 0023 ESP = 0012E6D4 EBP = 0012E728
    ECX = 00000000 DS = 0023 ESI = 0012E75C FS = 003B
    EDX = 004FA0F2 ES = 0023 EDI = 0104FC1C GS = 0000
    Code at CS:EIP
    5E C9 C2 10 00 6A 18 68 28 30 E8 77 E8 40 6A 00
    Stack:
    00FE796C 0EEDFADE 00000001 00000000 77E73887
    00000000 00000000 77F75DA3 00403A05 01039A24
    0042690B 0104F400 0000000B 00000000 0104F948
    77F75DA3 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
     
    deandob, Mar 26, 2005
    #15
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.