Page 1 of 1 1
Topic Options
#200094 - 2010-09-28 08:48 PM Trying to code a C lib into a kix script
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
1) I have no idea how or what to do to make this go (if it is even possible)

I have this SDK:
 Quote:
How to get started with Novacore SDK?

The Novacore SDK is distributed as a shared server and a suite of API components that you can use in your applications.
The API components are a set of dlls with a simple C-interface. These dlls are used only by your application allowing you to include or distribute only those dlls that offer the functionality you need. Here is a list of API components that form the Novacore SDK:

Core Module
Activation Module
Diagnostics Module
Gps Module
File Manager
Connection Module
Sms Encoding Module
Also included with the SDK is a merge module and driver installer that can be bundled into your application installer for deployment.

After installing the SDK you are ready to start building applications. To develop an application using the SDK you need to start with the main API component, NvtlSdk.dll This component is the primary interface of the SDK and is required by all applications. This component allows applications to discover WWAN devices on the system, attach to them, and perform typical operations.
Usage of this component involves physically loading the dll, creating an interactive session with the dll, and then locating and attaching to a device for use. Once a device is located and attached to the sdk you can then proceed to load and utilize the other dlls as needed in a similar manner.

The SDK includes a set of console applications that demonstrate how to perform a wide variety of common tasks. These can be used as a starting point for getting familiar with the SDK. The most basic sample is the AttachDevice application which demonstrates how to use the SDK to attach to a device and receive basic information such as the phone number and firmware version. You may also refer to How to attach to a device and monitor its state? for an overview of this process.


What I need to do is the "most basic sample" as described above. I need to attach to an inserted device and read its phone number and ESN.

 Quote:


What are the basic steps required for using NovaCore SDK?
The core component of the SDK is NvtlSDk.dll. This component is responsible for managing a device and provides, basic information, events, device detection, and common or often used functions. This component is always required and should be the first component of the SDK to be loaded and used when building applications.

Following are the general steps that should be taken when using the NvtlSdk.dll component
Load the component. This is done using LoadLibrary() or related function
Create a session with the component using method NvtlCommon_CreateSession. This allows the component to create the internal contexts it needs to allow a host application to receive events and manage devices. A session is required for all subsequent interaction with the SDk.
Register an event callback using method NvtlCommon_RegisterEventCallback. Registering a callback function allows the SDK to send events to the host applications regarding device addition or removal, device state, signal strength, roaming status, etc.
Query available devices using method NvtlCommon_GetAvailableDevices. This method allows a host application to receive a list of all devices currently present in the system that are recognized by the SDK. If there are no devices currently available the host application should wait and call this method again in response to a device added event when a device becomes available.
Attach to a device using method NvtlCommon_AttachDevice. Once an available device is recognized the host application must inform the SDK that it wishes to attach to a device for use.
Once a device is attached the application can proceed to interact with the device, execute various functions of the SDK, and utilize various other modules of the SDK.
When done using a device, the host application should reverse the steps by detaching from the device, destroying the session, and unloading the component.

Using the remaining SDK components is similar except that they should be utilized only after a device is available, and the CreateSession method of each of those components requires the session created with NvtlSdk as a parameter.
Examples demonstrating this and various specific tasks can be found in the supplied sample code. The sample code also includes some C++ wrapper classes that can be used to help manage the component loading and unloading.


Does NovaCore SDK come with source code?
The SDK package comes with binaries (a set of dlls), and sample source code (C++) that demonstrates the use of SDK components.



I'm basically lost with this... any ideas?
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#200095 - 2010-09-28 10:21 PM Re: Trying to code a C lib into a kix script [Re: Radimus]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
I don't know much about this, but it's possible with enough docs we could get it working with the dynawrap.dll or if there is c# examples we can do it with the the powershell com object.
Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 977 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.051 seconds in which 0.022 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org