AT command AT+CPMS="SM","SM","MT" - mobile

I needed a clarification about the AT command AT+CPMS="SM","SM","MT"
Although this AT command work with most of the UEs,it however gives an error msg with the Nokia N72...
I tried the AT command AT+CPMS=? & the mobile's response was "+CPMS: (),(),()" &
I tried the AT command AT+CPMS? & the response was "+CPMS: ,,,,,,,,".
Does this mean that the mobile does not allow the user to acces the memory location...
Also if possible could you tell me the at commands not supported by this phone or the alternate AT commands for the mobile.
Help on this will be very much appreciated!!!

In order to know if a command is supported or not you have to call AT+CLAC. The supported AT commands are described in a nokia document you can find on their developer forum.

Related

windows automation and voice control using wake word

I want to use a "wake word" with my windows 10 computer, instead of a hotkey, to run a custom windows automation command.
How can I setup windows to use a "wake word" and then run a custom command?
(Also how can I easily make a windows automation script to launch a program, or find the launched program, and send some keyboard keys and maybe mouse clicks?)
welcome! so it sounds like you want to do 3 things, so it should be 3 questions. If you edit these into 3 separate posts, then you might already find the answers, also. without needing to post. I guess the secret is to break down your complex problem into smaller problems first and try for yourself first. Then share what you tried.
OK, I break it down for you here:
Use voice control on windows (using cortana) with a "wake word" instead of hardware input device
https://www.laptopmag.com/articles/enable-hey-cortana-windows-10
Make a voice command run a custom Command (using cortana)
https://www.windowscentral.com/how-run-custom-commands-using-cortana-windows-10
you want to easily send keyboard and mouse commands by executing one custom command, check out these options as a sample
https://windowsreport.com/automate-pc-tasks/
Have a nice day, and you are not too far off from really getting the true benefits out of this site. Also if you break your questions down correctly, you will get upvotes and good reputation instead of a downvote from the people who check your question to see if its ok for use with this site. If you fix your question the downvote will be fixed by whoever did it, too.

Getting raw multitouch data with libinput

I'd like to get the raw multitouch data from my touchpad in order to.
I've tried using libevdev but my success was limited and I couldn't do what I wanted. I found out about libinput which might be more abstracted, and found out how to use it to automatically get the gestures (for example using libinput-debug-events) but I find them limited and would like to get the raw input (with each finger's movement).
Is there any way to do this with libinput, or not?
I couldn't find any helpful documentation: I found this one but couldn't find any example or route to follow. Actually, I think that I could make myself a way through my problems if I understood how to use these functions, but it's far from clear, and I'm getting in a lot of trouble installing libinput itself (for example, commands like libinput debug-gui aren't recognized by my system).
Any help is appreciated.
Don't know if this helps or not, but on my distro (Ubuntu) I installed libinput-tools.
sudo libinput debug-gui
Also gives me an error:
debug-gui is not a libinput command or not installed.
However,
sudo libinput debug-events
will print out events in the terminal just fine.

Retrieve network camera stream URL in Linux

I am trying to retrieve rtsp URLs of cameras on my network. I can do this using Onvif Device Manager on Windows but how to do this on Linux using C/C++ or command line tool. I have tried various libs e.g. onvifc (OpenCVR) and onvifcpplib but none of them could compile on Linux, neither they have API documentation. Any suggestions please!
I was able to find a gsoap-onvif solution from https://github.com/tonyhu/gsoap-onvif. This programs successfully retrieves parameters from most of the Onvif complaint cameras.
you can have a try with python onvif, some feature you can use, may be other feature such as PTZ you can use .
also, you can have a try with opencvr's another project, https://github.com/veyesys/h5stream, if you can't compile,you can download from sourceforge.
Good luck.

Voice call record on Nexus4

I tried recording voice call on Nexus 4. I used amix, aplay & also tried using "Incall REC" use case. Though arec generates the file, but it has no voice. Can someone please tell me if this is supported at HW level. I found some blogs claiming it is supported on APQ8064. So I am confused.

WinAPI C - RunAsUser from REDMON_USER and REDMON_SESSIONID

I installed a PostScript printer driver and have setup REDMON (redmonnt.dll) for redirecting postscript output to my program. In my rather simple c program I capture the data from STDIN and I am able to successfully save it into a .ps file. The file looks OK.
However, I want to start gsview.exe for viewing the file. If I call ShellExecute it fails in Windows 7 because of permission issues. It seems that my program is called under a different user account (LOCAL SERVICE). So I am looking for a way to run gsview.exe under a specific username (the user who initiated the print job) which is available to the program in a variable called REDMON_USER along with the SESSIONID as well.
Q: What are the minimum WinAPI calls required to start a program given a username and a sessionid?
Any code examples in C/C++, .NET would be very helpful.
EDIT: What I am trying accomplish is something very similar to redrunee (from redmonee). I don't want to use redrunee because it opens about a console window for a brief moment.
Note:
1) The program is called by the printer service as [LOCAL SERVICE] account.
2) The first parameter Username (REDMON_USER), in effect, points to the user currently looking at the screen
Look at CreateProcessAsUser.
Also look at CreateProcessWithLogonW and CreateProcess.
They are linked from the CreateProcessAsUser
EDIT In reply to comments by OP.
Follow advice from this thread.
I am copying this here verbatim, in case the original link stops working:
The same code works for us on Vista as
on XP, etc. The service is running as
the Local System.
use WTSGetActiveConsoleSessionId to get the ID of the current active
Windows session at the console (i.e.
the machine keyboard and display, as
opposed to WTS sessions).
use WTSQueryUserToken to get the token for that session.
use DuplicateTokenEx(hToken,MAXIMUM_ALLOWED,NULL,SecurityIdentification,TokenPrimary,
&hTokenDup) to duplicate that token.
use CreateEnvironmentBlock to create an environment that you will be
passing to the process.
use CreateProcessAsUser with the duplicated token and the created
environment. Actually, we use
CreateProcessAsUserW, since the A
version had some sort of bug on some
older systems.
Don't forget to CloseHandle on the various tokens, etc, and to
DestroyEnvironmentBlock the
environment.
Thank you efratian.
PS. Oh joy of Windows programming, did not do it for quite a while. Now I remember why. The only thing that is close or even worse documented is OpenSSH programming.
The documentation describes the "Run as User" feature, which seems to be exactly what you want:
Run as User is intended for launching a GUI program such as GSview locally via RedRun.

Resources