Doubt on com api?
Hi I am planning to buy a USB wireless data card to send SMS. So in some document I have read that when I connect the USB modem to a PC windows assigns a COM port to it. So can I send and read SMS with this USB data card(This card supports SMS and voice calls) using rxtx com api?
Edited by: Muralidhar on Mar 16, 2013 7:19 PM
Edited by: Muralidhar on Mar 16, 2013 7:31 PM
RxTx is only a low level way of sending and receiving data over a serial port. You'd still need to know how to 'talk' to this device of yours. So unless you have some sort of manual describing the protocol of the device or you have an SDK that defines the protocol for you, its not going to happen.
Similar Messages
-
Adobe VBScript or COM API fails when Adobe application not already open on a certain machine
Was wondering if anybody might have input on this or observed this themselves. Is there a known issue/bug for this?
I'm building scripted tooling to automate tasks in Adobe Illustrator and Photoshop, using the COM API (what Adobe lists as VBScript scripting reference, but is really COM). I've tested with both JScript (Microsoft Javascript, for doing same things you would use VBScript for) and Python using COM. In both cases got the same issue.
When I was building the tooling, it works fine for me. But on a colleagues machine, the problem comes up. Sadly the error messaging is vague to pinpoint the root cause of the problem. We just know when it happens, but not why/how. We both have Windows 7 64-bit and are using 64-bit version of the Adobe apps, version CS6. Though we also have 32-bit version installed as well.
The funny thing about my colleague's machine is the the tool/script will execute fine if Adobe Illustrator/Photoshop is already open. But if the app is not open already, it just fails at the point of instantiating the COM object. On my machine it works fine in both cases.
Here's the error output observed:
in JScript
C:\scripts>cscript windows_cli_script_runner.js /s:C:\scripts\test.jsx
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
C:\scripts\windows_cli_script_runner.js(25, 5) (null): 0x800700C1
in Python
C:\scripts>python cli_script_runner.py -s C:\scripts\test.jsx
cli_script_runner.py:33: SyntaxWarning: import * only allowed at module level
def run_script(script,doc=None,app=None):
Traceback (most recent call last):
File "cli_script_runner.py", line 89, in <module>
run_script(args.script)
File "cli_script_runner.py", line 68, in run_script
app_ref = win32com.client.Dispatch(app)
File "C:\Python27\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch
dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 114, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python27\lib\site-packages\win32com\client\dynamic.py", line 91, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147024703, 'OLE error 0x800700c1', None, None)
C:\scripts>
basically both point to this line at failure:
in JScript
var app_ref = new ActiveXObject(app);
in Python
app_ref = win32com.client.Dispatch(app)
where app is "Illustrator.Application.CS6" or "Photoshop.Application", per the Adobe scripting guide and VBScript scripting reference.
I didn't test VBScript but assume it's the same since JScript and VBScript and Python are all using same COM interface, and VBScript and JScript using same Windows Scripting Host interface.Also, there appears to be rather an unfortunate bug. If the publisher does not yet have a subscriber, it looks like these two properties return an error. Oof.
So. there is this other way to do it. Embarrassing.
var allowAudio:Boolean = true;
var allowVideo:Boolean = true;
publishingStream.send("|RtmpSampleAccess", allowAudio, allowVideo);
Yep. The secret vertical bar call. I believe you can make this call once on the publishing stream. However, that'll only get to the subscribers that are currently connected and it won't get to subscribers that have yet to connect.
You can also call send on the specific subscribing streams to give different permissions to each subscriber.
More...
http://forums.adobe.com/thread/632355?tstart=0 -
Hello,
Configuration: Windows Embedded 8 64-bit.
I'm using the Windows Firewall with Advanced Security COM API. The program uses the INetFwRules interface. Basically, I'm using the following code (Form the code sample available here : http://msdn.microsoft.com/en-us/library/windows/desktop/dd339604%28v=vs.85%29.aspx.)
I get the error when performing "hr = pFwRules->Add(pFwRule);".
We can also encounter the problem when removing a rule (using pFwRules->Remove(ruleName);)
HRESULT hrComInit = S_OK;
HRESULT hr = S_OK;
INetFwPolicy2 *pNetFwPolicy2 = NULL;
INetFwRules *pFwRules = NULL;
INetFwRule *pFwRule = NULL;
long CurrentProfilesBitMask = 0;
BSTR bstrRuleName = SysAllocString(L"SERVICE_RULE");
BSTR bstrRuleDescription = SysAllocString(L"Allow incoming network traffic to myservice");
BSTR bstrRuleGroup = SysAllocString(L"Sample Rule Group");
BSTR bstrRuleApplication = SysAllocString(L"%systemroot%\\system32\\myservice.exe");
BSTR bstrRuleService = SysAllocString(L"myservicename");
BSTR bstrRuleLPorts = SysAllocString(L"135");
// Initialize COM.
hrComInit = CoInitializeEx(
0,
COINIT_APARTMENTTHREADED
// Ignore RPC_E_CHANGED_MODE; this just means that COM has already been
// initialized with a different mode. Since we don't care what the mode is,
// we'll just use the existing mode.
if (hrComInit != RPC_E_CHANGED_MODE)
if (FAILED(hrComInit))
printf("CoInitializeEx failed: 0x%08lx\n", hrComInit);
goto Cleanup;
// Retrieve INetFwPolicy2
hr = WFCOMInitialize(&pNetFwPolicy2);
if (FAILED(hr))
goto Cleanup;
// Retrieve INetFwRules
hr = pNetFwPolicy2->get_Rules(&pFwRules);
if (FAILED(hr))
printf("get_Rules failed: 0x%08lx\n", hr);
goto Cleanup;
// Create a new Firewall Rule object.
hr = CoCreateInstance(
__uuidof(NetFwRule),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(INetFwRule),
(void**)&pFwRule);
if (FAILED(hr))
printf("CoCreateInstance for Firewall Rule failed: 0x%08lx\n", hr);
goto Cleanup;
// Populate the Firewall Rule object
pFwRule->put_Name(bstrRuleName);
pFwRule->put_Description(bstrRuleDescription);
pFwRule->put_ApplicationName(bstrRuleApplication);
pFwRule->put_ServiceName(bstrRuleService);
pFwRule->put_Protocol(NET_FW_IP_PROTOCOL_TCP);
pFwRule->put_LocalPorts(bstrRuleLPorts);
pFwRule->put_Grouping(bstrRuleGroup);
pFwRule->put_Profiles(CurrentProfilesBitMask);
pFwRule->put_Action(NET_FW_ACTION_ALLOW);
pFwRule->put_Enabled(VARIANT_TRUE);
// Add the Firewall Rule
hr = pFwRules->Add(pFwRule);
if (FAILED(hr))
printf("Firewall Rule Add failed: 0x%08lx\n", hr);
goto Cleanup;
This works pretty well but, sometimes, at system startup, adding a rule ends up with the error 0x8007000e (E_OUTOFMEMORY) ! At startup, the system is always loaded cause several applications starts at the same time. But nothing abnormal. This is quite a random
issue.
According MSDN documentation, this error indicates that the system "failed to allocate the necessary memory".
I'm not convinced that we ran out of memory.
Has someone experienced such an issue? How to avoid this?
Thank you in advance.
Regards, -Ruben-Does Windows 8 desktop have the same issue? Are you building a custom WE8S image, or are you using a full WE8S image? The reason I ask is to make sure you have the modules in the image to support the operation.
Is Windows Embedded 8.1 industry an option?
www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WE8S, Pro Guide to WES 7, Pro Guide to POS for .NET -
Is Using the COM API for Integration still valid for UCM 11g?
Dear All,
One of our partners is trying to implement integration to UCM by using the COM API (described http://download.oracle.com/docs/cd/E17904_01/doc.1111/e10807/c08_com.htm#i1084682).
However, they cannot follow the manual, because the environment does not correspond to the written text:
- 8.2.1 To set up IdcCommandUX, run the IdcCommandUX setup file, which is stored in extras/IdcCommandUX/setup.exe in the media. – no such directory exists (neither extras, nor IdcCommandUX); ‘extras’ used to be in 10g, though
- 8.2.3 1. Add the IdcCommandUX control to the project . – according to the partner, this is supposed to mean that IdcCommandUX.ocx must exists somewhere – there is no such file to be found
- 8.4 speaks about “IntradocClient OCX component”, 8.5 speaks about “IdcClientOCX Component” – the system has only IdcClient component, which contains only idcclient.jar
Could anyone confirm that COM API is still available in 11g? If so, what steps need to be followed to make it running?
Thanks in advance, JiriFor what it's worth, I had no problems migrating an authentication plugin from 4 to 5. This is really good, because otherwise I wouldn't be able to use 5.1.
-
Labview 6.0, rtdx com api, and ti dsp
According to the ti code composer studio tutorial (ti document spru301c.pdf
http://focus.ti.com/lit/ug/spru301c/spru301c.pdf, pg 1-13), one should be able
to communicate between labview and a dsp using the rtdx com api. I know that NI offers
the DSP Integration Kit, but it looks like some rtdx functionality can be accomplished
without this by using this com api. I haven't been able to find any examples of doing this. TI
did not seem to have any examples, I'm wondering if National Instruments has an example
or can suggest a method of doing this.
Thanks.
regards,
llp2Ame G.,
Thanks for your suggestions. i tried the TI DSP Test example(Audio_dsk6711_bios_ccs2.20), but the example could not work correctly.
The RTDX just transmitted the data from TI DSP C6711 DSK to Labview slowly. The data-rate is about 1 Hz. And i use the RTDX example in
TI DSP tutorial to try again. I got the same result. I just received the data( 8 integrals) from TI DSP C6711 in 1 Hz. I want to use Labview
to receive the data( 8 integral) in about 30 or 20 Hz. what is my problem? RTDX mode(continuous mode or non-continuous mode)? interrupt? or others?
i provide my problem. Thank you very much and I am looking forward to hearing from you.
regards,
Danial
2005/10/20
Attachments:
less_1.zip 79 KB
s1l1.c 3 KB
RTDX.vi 97 KB -
ITunes COM API for Windows - iTunes 7.7 broken!
I use the iTunes COM API for Windows to control iTunes as part of a program which helps users create audiobooks.
Version 7.7.0.43 of iTunes breaks this software. So far as I can determine, the iTunes.ConvertTracks2 and iTunes.ConvertFiles2 routines are now broken, in that they no longer return a reference to the converted tracks.
Is this a bug on Apple's part, or is it a fundamental change? The COM API documentation describes the earlier behavior, which makes sense.I'm seeing the exact same behaviour in my application calling the COM API from Perl. No track reference can be obtained after ConvertTracks2 completes.
What's going on?
Edward -
Hi,
is it possible to call methods on a COM API that is written in VB on a windows machine from Java? I'd rather not have to take the route of using JNI and keep this 100% Java. Ideally, I'm looking for a Java solution that would allow me to call methods in the COM API from different platforms (Win / Linux / Mac).
Thanks,
ShaneI've used Jacob. You can get it at:
http://danadler.com/jacob/
Don't understand your Linux/Mac angle though. I've heard COM was ported to other platforms but haven't heard of it being used. Jacob is Win 32 only.
Dom. -
I'm using the COM API with C# to develop a web application.
I have a list of products on a web page. When someone clicks on the product I would like to show some, not all, of the attributes.
How can I retrieve the value of a particular attribute?If I try the following I always get "Incorrect parameter". If I pass the index of the attribute, it works. Will this not work for attributes with spaces in their name?
XCATCOMLib.Search search = new XCATCOMLib.SearchClass();
XCATCOMLib.ResultSetDefinition productsRsDef = null;
XCATCOMLib.Tables tables = catalog.Tables;
XCATCOMLib.Table prodTable = tables.Item(PRODUCT_TABLE);
productsRsDef = new XCATCOMLib.ResultSetDefinitionClass();
productsRsDef.Table = prodTable.Name;
productsRsDef.IncludeAttributes = true;
productsRsDef.ShowEmptyAttributes = false;
for (int j = 0; j < prodTable.Fields.Count; j++)
productsRsDef.Fields.Add(prodTable.Fields.Item(j));
XCATCOMLib.TaxonomyLookupParameter param = search.Parameters.NewTaxonomyLookupParameter(PRODUCT_TABLE, CATEGORY_FIELD);
param.NodeID = DEHYDRATORS_CATEGORYID;
XCATCOMLib.FreeFormTableParameter tableParam = search.Parameters.NewFreeFormParameter(PRODUCT_TABLE);
ResultSet rs = catalog.GetResultSet(search, productsRsDef, prodTable.Fields.Item(0).Name, true, 0);
XCATCOMLib.Fields objFields = rs.Fields;
for(int itemCounter = 1; !rs.EOF; rs.MoveNext(), ++itemCounter)
AttributeValues attributeValues = rs.Fields.Item("Category").Attributes.Item("PressGen: Flow Rate").Values; -
Hi All,
How can we install MDM COM API on the server. I mean what are the requirements.
I have to run MDM UOM manager for which it is required.
Thanks
Devinderpal YadavHi,
first of all you should consider installing the COM API and the UOM Manager on a client machine as it is a client software.
1. Download COM API from service marketplace
2. Copy the installer to the according server / desktop pc
3. Start installation
Prerequsite:
Runs only on windows platforms (as a matter of course due to the fact that it is a COM lib).
Regards
Andreas -
ITunes 11 removed some COM API functions in Windows
I realized that since I installed iTunes 11, all my scripts that use iTunes stopped working. Every call to ".AddArtworkFromFile" for example stopped working. I would like to verify the COM SDK documentation to update my scripts but this document "iTunes COM Windows SDK" has not been updated since 2009 (or at least, I cannot find a more up to date version). Every time I try to access to those deprecated functions, I get a "Catastrophic failure" error.
I rely intensely on those API every day. I will to go back to iTunes 10.7 that's for sure.I found this message on the TuneUp Support page.
"Some users are experiencing an issue after updating to iTunes 11 which causes the "attach" feature of TuneUp to become non-functional. We're currently working on a fix for this issue, and apologize for any inconvenience this may cause.
Updates to this issue will be posted on our support page as we receive them."
ref: http://support.tuneupmedia.com/entries/22504352-itunes-11-attach-feature-issue
I thing they might experience the same problem as me. -
Acrobat X Pro crashes when document closed if launched from COM API
Environment: Windows 7
Acrobat X Pro
I'm seeing some unusual behaviour when running the following code which simply launches the Acrobat Application and opens up a document with Acrobat X Pro. Closing the document causes the program to become unresponsive and then crash. The crash dump shows the exception as "The thread tried to read from or write to a virtual address for which it does not have the appropriate access".
I've discounted a problem with the plugin I wrote since the program also crashes without the plugin loaded.
Same code runs fine with Acrobat 9 using the version 9 acrobat.tlb.
Can anyone help or advise?
With thanks,
Evan
HRESULT hr = E_FAIL;
VARIANT_BOOL bRet;
try
::CoInitialize(0);
CComPtr<Adobe10::Acrobat::CAcroApp> pApp;
CComPtr<Adobe10::Acrobat::CAcroPDDoc> pDoc;
CComPtr<Adobe10::Acrobat::CAcroAVDoc> pAVDoc;
CComPtr<IDispatch> pDisp;
CComPtr<IUnknown> pUnk;
CComPtr<IUnknown> pUnk_App;
if (SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe10::Acrobat::AcroApp), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk_App))){
hr = OleRun(pUnk_App);
if (SUCCEEDED(hr)){
hr = pUnk_App->QueryInterface(&pApp);
if (SUCCEEDED(hr)){
pApp->Show(&bRet);
else
return hr;}
if (SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe10::Acrobat::AcroPDDoc), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk))){
hr = OleRun(pUnk);
if (SUCCEEDED(hr)){
hr = pUnk->QueryInterface(&pDoc);
if (SUCCEEDED(hr)){
hr = pDoc->Open((BSTR)CComBSTR(strPath), &bRet);
if (bReadOnly == VARIANT_TRUE){
pDoc->SetInfo((BSTR)CComBSTR(
"ReadOnly"), (BSTR)CComBSTR("yes"), &bRet);}
hr = pDoc->OpenAVDoc((BSTR)CComBSTR(strPath), &pDisp);
if (SUCCEEDED(hr)){
HWND hwnd= ::FindWindowW(_T(
"AcrobatSDIWindow"), NULL);
if (hwnd)ForceForegroundWindow(hwnd);
catch(const std::wstring& s){
EC_TRACE(LVL_ERROR, s.c_str());
if (hr == S_OK)hr = E_FAIL;
return hr;Problem solved. Evidently, the lead document in the file was corrupt. I recreated the file and it compressed without any problems.
-
MDM com API: Retriving Attribute priority in C++
Has anyone been able to retrive attribute priority using C++ in MDM 5.5sp3? We're in the process of upgrading from mdme4 to 5.5sp3 and the code that has worked for us in the past is failing to return the priority value:
unsigned char ucPriority;
ucPriority = a2iAttribute->Priority;
(Where a2iAttributre is a valid IAttribute object)
Is now always returning a value of 0 irregardless of the true value of the priority.
When we access the priority in either VB 6.0 and c# (.net 1.1) it works fine.
We're using build 5.0.28.17 from Jan 17th, 2006.
Any ideas?
Thanks,
-glennIt turns out this problem occured only when we tried accessing an attribute's priority via icatalog.GetLimitedAttributes.
Many thanks to Nick Luu and Stanley Levin at SAP for their help in narrowing down on the exact problem and getting it fixed in time for the release of mdm 5.5 SP3 Hotfix 5 on 8-11. -
COM API Characteristic attribute
What methods do I need to call in order to do the following?
I want to get all the products that have a Numeric (Characteristic) attribute that has a Min value <= X and a Max value >= Yhere is my solution...
XCATCOMLib.Search search = new XCATCOMLib.SearchClass();
XCATCOMLib.FreeFormTableParameter tableParam = search.Parameters.NewFreeFormParameter(PRODUCT_TABLE);
double sysVolume = double.Parse(this.txtSysVolumeftcu.Text);
XCATCOMLib.FreeFormParameters ffParams = tableParam.Fields.New "Category",SearchOperatorEnum.xcSearchOperatorAnd).FreeForm;
XCATCOMLib.FreeFormAttributeParameter volMinParam = ffParams.NewAttribute(178, RatingEnum.xcMinimumRating, SearchOperatorEnum.xcSearchOperatorAnd);
volMinParam.Values.NewCharacteristic(sysVolume, 9, FreeFormSearchTypeEnum.xcLessThanOrEqualToSearchType);
XCATCOMLib.FreeFormAttributeParameter volMaxParam = ffParams.NewAttribute(178, RatingEnum.xcMaximumRating, SearchOperatorEnum.xcSearchOperatorAnd);
volMaxParam.Values.NewCharacteristic(sysVolume, 9, FreeFormSearchTypeEnum.xcGreaterThanOrEqualToSearchType); -
Developer Api for Windows (not using COM)
Hello everybody,
I'm using the COM SDK of iTunes for some personal stuf.
But is there an other way to interact with the iPad without using this deprecated COM API?
- some windows API or guide on how to access The iPad using the USB driver?Hello again tt2,
Seems like you're the olny one who has ever tried to answer my question (see some older posts of me).
Vut thanks for you're answer. Although I still would like to know how those guys are doing it...
But should there not be some documentation on how to access the device?
Or should I be looking for some native USB programming techniques?
Mr. Hoek -
Doubt in java.util.logging
Hi,
I have doubt in logging api provided in java 1.4.
I have a simple program to get the logger and output log into it.
This is how the program looks.
LogTest.java
import java.util.logging.*;
import java.util.*;
public class LogTest {
public static void main(String args[]) {
LogManager manager = LogManager.getLogManager();
Logger l = manager.getLogger("global");
System.out.println(l);
l.severe("Test");
System.out.println(manager.getLogger("ivy"));
System.out.println(manager.getLogger("test"));
I able to get the instance of the global logger, but im not able to get instance of other logger. I getting null for all the other logger
test.properites
=================
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
ivy.level = INFO
.ivy.level = INFO
=================
Compilation Command
java -Djava.util.logging.config.file=C:\WorkSpace\test.properties LogTest Output:
java.util.logging.Logger@13f5d07
Jan 25, 2006 7:19:24 PM LogTest main
SEVERE: Test
null
null
I also tried the same with no config properties, Still im getting the null for logger.
Can I know is there anything that im missing. Is there any property that must be set or do i hav set some config properties.
Thanks,
SivaWell, basically that's part of the formatdefinition
that Properties uses. If you don't do it, then you
aren't really using Properties format and you'llhave
to do your own IO.Thanks for the reply. Is there anyother api or class
that can be used to resolve my problem.What is the problem? A character is escaped, but you will get : when you read the value. You don't have a problem as long as all reading / writing is done through that class.
Maybe you are looking for
-
How to find out the number of songs in my iTunes 11 library
How to find out the number of songs in my iTunes 11 library
-
hello i cant activate my iphone 5s i know my apple id and password but apple says me for security reason reset your password .i changed password but not working . my apple id its disabled for security reason please enable it i cant activate my iphone
-
Resolved: Screen Saver - Floating Clock Position
With the release of Snow Leopard, the floating clock, superimposed upon the screensaver, was no longer positioned correctly. That has been fixed (either in 10.6.4 or (most likely) 10.6.5). Several threads, which are now archived, identified this issu
-
How to insert line number into APPLIED_CUSTOMER_TRX_LINE_ID?
Hi All, I am working on the table of receivable AR_RECEIVABLE_APPLICATIONS_ALL. I get some information about APPLIED_CUSTOMER_TRX_LINE_ID form TRM. APPLIED_CUSTOMER_TRX_LINE_ID NUMBER (15) The line number of the debit item or credit memo
-
Not receiving sound or number email notifications on my icon. Using iOS 7.1.1
NNot receiving sound or number email notifications on my icon. Using iOS 7.1.1