CTI COMIT USB Caller ID Error

I am using SamabaPOS3 i have facing some problem in CTI COMET USB CALLER ID .this device is working well in Putty it showes the result in same line in putty so when i set the com port in samba pos and the click on save button then we receive exception on it
Please help me


Can your provide the details (copy and paste) appearing under “Detailed Report” tab on SambaPOS Reporter? it provides clue where/what is causing the issue.


[General Info]

Application: POS
Version: 3.0.35 BETA
Region: en
DB: SQ
Machine: WAQAS-PC
User: WAQAS
Date: 9/9/2014
Time: 4:44 AM

User Explanation:

WAQAS said “”

[Exception Info 1]

Top-level Exception
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Samba.Modules.CidMonitor
Stack Trace: at Samba.Modules.CidMonitor.CometDevice.DoFinalize() in d:\Project\sambapos\New folder\RoosterWithRoosterLable\Rooster2\Rooster2\SambaPOS-3-master\Samba.Modules.CidMonitor\CometDevice.cs:line 72
at Samba.Modules.CidMonitor.AbstractCidDevice.FinalizeDevice() in d:\Project\sambapos\New folder\RoosterWithRoosterLable\Rooster2\Rooster2\SambaPOS-3-master\Samba.Modules.CidMonitor\AbstractCidDevice.cs:line 45
at Samba.Services.Implementations.DeviceService.b__b(IDevice x) in d:\Project\sambapos\New folder\RoosterWithRoosterLable\Rooster2\Rooster2\SambaPOS-3-master\Samba.Services\Implementations\DeviceService.cs:line 31
at System.Collections.Generic.List1.ForEach(Action1 action)
at Samba.Services.Implementations.DeviceService.FinalizeDevices() in d:\Project\sambapos\New folder\RoosterWithRoosterLable\Rooster2\Rooster2\SambaPOS-3-master\Samba.Services\Implementations\DeviceService.cs:line 31
at Samba.Modules.SettingsModule.SettingsViewModel.OnSaveSettings(String obj) in d:\Project\sambapos\New folder\RoosterWithRoosterLable\Rooster2\Rooster2\SambaPOS-3-master\Samba.Modules.SettingsModule\SettingsViewModel.cs:line 63
at Microsoft.Practices.Prism.Commands.DelegateCommand`1.<>c__DisplayClass6.<.ctor>b__2(Object o)
at Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)
at Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at Samba.Presentation.App.Main() in d:\Project\sambapos\New folder\RoosterWithRoosterLable\Rooster2\Rooster2\SambaPOS-3-master\Samba.Presentation\obj\x86\Release\App.g.cs:line 0


[Assembly Info]

Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
PropertyTools, Version=2012.4.14.1


[System Info]

Operating System
-Microsoft Windows 7 Ultimate
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = 300
–FreePhysicalMemory = 3428500
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 6.1.7600

Machine
-WAQAS-PC
–Manufacturer = Dell Inc.
–Model = Precision WorkStation 490
–TotalPhysicalMemory = 6439993344
–UserName = WAQAS-PC\WAQAS


@arslan if this error is same with the one with you’ve PM’ed me you’ve incorrectly modified source code and I’m sorry I won’t be able to give support for programming issues. Maybe you should contact CTI COMET seller because putty output does not seem right to me. It might be a hardware issue and I know people using CTI COMET without any modifications.

Hello
I am using SambaPOS3 with the CTI COMET USB CALLER ID - driver version:2.8.28.0 Win7/8 64 bit
Putty works fine. (1200 baud and no float control)
But no Popup window with the phonenumber comes up in SambaPOS.

If i change the settings in SambaPOS3 for CTI COMET USB Device (like Trim Chars) and save it.
SambaPOS chrashes with the same error as arslan.

It crashes for arslan because he made mistakes while editing source code. Did you edited source code too? If not please post whole error message.

Hello emre
No i didn’t edit the source code.
Here is the error message when i save the settings in SambaPOS:
I have tested in SambaPOS4 to. The Program doesn’t crash but no phone number comes up!

Regards Klaus


[General Info]

Application: SambaPOS
Version: 3.0.35 BETA
Region: de
DB: CE
Machine: BATOSYUGOTOGO
User: Yugotogo
Date: 12.11.2014
Time: 10:41

User Explanation:

Yugotogo said “”

[Exception Info 1]

Top-level Exception
Type: System.NullReferenceException
Message: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
Source: Samba.Modules.CidMonitor
Stack Trace: bei Samba.Modules.CidMonitor.CometDevice.DoFinalize()
bei Samba.Modules.CidMonitor.AbstractCidDevice.FinalizeDevice()
bei Samba.Services.Implementations.DeviceService.b__b(IDevice x)
bei System.Collections.Generic.List1.ForEach(Action1 action)
bei Samba.Services.Implementations.DeviceService.FinalizeDevices()
bei Samba.Modules.SettingsModule.SettingsViewModel.OnSaveSettings(String obj)
bei Microsoft.Practices.Prism.Commands.DelegateCommand`1.<>c__DisplayClass6.<.ctor>b__2(Object o)
bei Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)
bei Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
bei MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
bei System.Windows.Controls.Primitives.ButtonBase.OnClick()
bei System.Windows.Controls.Button.OnClick()
bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
bei System.Windows.Threading.Dispatcher.Run()
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei System.Windows.Application.Run(Window window)
bei Samba.Presentation.App.Main()


[Assembly Info]

Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
System, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
PropertyTools, Version=2012.4.14.1


[System Info]

Operating System
-Microsoft Windows 8.1
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = 60
–FreePhysicalMemory = 746428
–OSArchitecture = 64-Bit
–OSLanguage = 1031
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 6.3.9600

Machine
-BATOSYUGOTOGO
–Manufacturer = ASUSTeK Computer INC.
–Model = EB1037
–TotalPhysicalMemory = 2022776832
–UserName = BatosYugotogo\Yugotogo


@klaus we used source code provided from http://www.crucible-technologies.co.uk/help/comet/cometexample.aspx

Download C# Project Source Files zip and open it somewhere. You’ll find a command line executable under bin folder. It named as Comet Example.exe. Can you test if that works fine or not?

Yes, the Comet Example.exe works fine. - strange
screenshot Comet Example.exe

Does Find Comet.exe displays a port? Is it same port you’ve configured with SambaPOS?

Yes Comet.exe find COM3 and this is configured port in SambaPOS.
I check if the file “CTI Comet USB Caller IDSettings.txt” exists

Can you try that?

  1. exit sambapos.
  2. delete that settings file.
  3. start sambapos…
  4. update port.
  5. click save and restart sambapos again.

i have done these steps, but it dont works.
The file “CTI Comet USB Caller IDSettings.txt” exists

As that device does not selling in our country I’m not able to reproduce that issue on my side. If you search v3 forums on sambapos.org you’ll find some people who successfully operated it. That may help finding more information.

I’ve added Advanced Modem Device to latest version to give all possible settings of COM port. If you want to test it with V4 that may also help.

It works in V4 - i have changed the Entity Type Name to “Kunde” in english “Customer” i have translate the Delivery DB - thats the problem

Thanks for your help

1 Like