Issue to write/execute AT-commands for a 3G modem
Dear community,
For the past month, I'm searching for some help on this topic without success, "you are my last hope"
After modification of the PPP parameters under network preferences (according the clear archive from apple support on this topic), the terminal windows is poping up without any problem.
Then... I can't write anything on this terminal !!! The only actions I'm able to perform is cancel or continue button. I also press the Return key as apple support mentioned (issue for 10.2 or earlier), nothing.
The test was done on a early 2010 macbook 13 and the same on a mid 2010 macbook 15, the same issue.
- Am I doing something wrong or mac os restricted this com protocol?
- Is there a way to command the modem trough the main computer terminal (which is working properly)?
Thank you in advance!
You've probably solved this problem long ago, but I came across this thread a couple weeks ago when trying to do the same and thought I post this .vi for future users. This code is for a multitech MT5656ZDXV modem, but I think the AT commands are generic enough to be used with any voice modem. Hardware configuration requires and audio cable running from the PC speaker to the modem mic port. Also, I had to use a Konnex Office Konnector telephone line A/D which required me to manually pick up a handset; the software prompts the user to do this. Fancier A/Ds should eliminate the need for this and I have one on order. If you have an analog phone line then there should be no need to use an A/D or manually pick up the phone.
Attachments:
modem_speakerphone.vi 21 KB
Sound Player.vi 17 KB
Similar Messages
-
How to write the CMD command for restarting all obi services?
Hi Experts,
BIEE:11.1.1.6
How to write the CMD command for restarting all obi services automatically by windows task scheduler?
I am try to write the code as below, but it does not work. Please help me to review it and check what I am missing.Thanks.
Or is there any better method for solving my requirement ? Please share me.Thanks very much.
cd C:\InstallPath\OBIEE\instances\instance1\bin
opmnctl stopall
opmnctl startall
I am facing the problem that it does not excute the 'opmnctl startall' code, which will be stopped after 'opmnctl stopall',
So how to modify the command ?ThanksSee if any of the these are useful or solves your query -
4.5.2 Using a Windows Service to Start and Stop System Components
http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/components.htm#BABEEAAI
4.5.3 Using the Oracle BI Systems Management API to Programmatically Start and Stop Oracle Business Intelligence
http://docs.oracle.com/cd/E23943_01/bi.1111/e10541/components.htm#BABFGICA
Edited by: Abhi on May 8, 2013 4:44 AM -
Remotely execute batch commands for AD users?
Alright, so I haven't found this anywhere, but is there a way to remotely execute commands for AD users?Eg. I have a user with an invalid signature in Outlook. I originally wrote up a script that would apply these signatures and set them as default on user logon, but I also made versioning available in my script, and I don't want to create an entire new version just because of a single signature, so instead I would prefer to use a command like "xcopy "\\server\deployed\signatures\%username%\signature.htm" /q /y /z" Is it possible for me to do it remotely?PS.Sorry if the question may sound stupid, I just haven't done something like this before.
This topic first appeared in the Spiceworks CommunityAlright, so I haven't found this anywhere, but is there a way to remotely execute commands for AD users?Eg. I have a user with an invalid signature in Outlook. I originally wrote up a script that would apply these signatures and set them as default on user logon, but I also made versioning available in my script, and I don't want to create an entire new version just because of a single signature, so instead I would prefer to use a command like "xcopy "\\server\deployed\signatures\%username%\signature.htm" /q /y /z" Is it possible for me to do it remotely?PS.Sorry if the question may sound stupid, I just haven't done something like this before.
This topic first appeared in the Spiceworks Community -
Need example vi using AT commands for dialing the modem at the remote end
Can any one give example vi for dialing up a modem and sending data to remote end
Hi sindhu6,
Presuming that you are connected to your modem via a serial connection:
I did find a forum related to your enquiry: http://forums.ni.com/t5/LabVIEW/AT-commands-in-labview/td-p/1213335
And I did find an example from ni.com: http://zone.ni.com/devzone/cda/epd/p/id/2577
Basically, what you need to do is to find out what are the AT commands used for your modem and send the command over using VISA related functions (e.g. VISA Read VI). You can send the command in a sequantial method. You can do this by using the method found in the first link. The best would be that you can create a state machine where by each case/state will consists of commands that you need to run in a sequence (let's say a sequence of AT commands for sending a message via TCP/IP communication).
You can also use a sequence structure but I would not suggest that since you cannot stop the sequence half way and if your command is very long, this may look pretty messy for your code.
The main question is:
What is the version of your LabVIEW?
What is the modem that you are using and how is your hardware setup is going to be (e.g. how did you communicate with your modem)?
Thank you
Warmest regards,
Lennard.C
Learning new things everyday... -
I have a Voice modem and I am communicating with it over a serial connection with AT commands. I am trying to put the modem in voice mode so that i can dial a number through Labview and play a wav file which should be heard on the receiving end. I do not know the commands to put the modem into voice mode, I have run Supervoice voice comms software and it manages to put it in voice mode but I cannot see what commands it sends it. Can anyone help? Im loosing hair over this.... =)
I know there is a AT+FCLASS=8 command, I have tried this before sending ATDT (to dial a number) but it hasnt worked.You've probably solved this problem long ago, but I came across this thread a couple weeks ago when trying to do the same and thought I post this .vi for future users. This code is for a multitech MT5656ZDXV modem, but I think the AT commands are generic enough to be used with any voice modem. Hardware configuration requires and audio cable running from the PC speaker to the modem mic port. Also, I had to use a Konnex Office Konnector telephone line A/D which required me to manually pick up a handset; the software prompts the user to do this. Fancier A/Ds should eliminate the need for this and I have one on order. If you have an analog phone line then there should be no need to use an A/D or manually pick up the phone.
Attachments:
modem_speakerphone.vi 21 KB
Sound Player.vi 17 KB -
" +The underlying connection was closed: An unexpected error occurred on a receive..Exception.Message " OR sometimes
"The remote server returned an error: (503) Server Unavailable..Exception.Message"
Getting exception above when performing various operation (site coll creating, group creation, adding users to group) for sharepoint online (Office 365) site using powershell script.
I want to create 3500 site collections using PS script. In-between getting above exception so it will skip one site collection creating and working again. for eg. after creating 11 site coll, script will through above exception and so 12th site coll will
not be create but working fine from 13 and so on...Remote server seems working to me...any additional check?
if problem with remote server then may be loop to create site provisioning should not start again..Right?
any idea? -
Execute windows command for a network path
hi,
i am trying to execute the following code:
try{
Process process=Runtime.getRuntime().exec(new String[]{"cmd","/c","dir","C:\\Backup"});
InputStream inputStream = process.getInputStream();
BufferedReader bufferreader = new BufferedReader(new
InputStreamReader(inputStream));
String line = bufferreader.readLine();
while(line!=null)
System.out.println(line);
line=bufferreader.readLine();
It works very fine, but when i replace exec() with exec(new String[]{"cmd","/c","dir","\\hfvs4\\storage"}) or with exec(new String[]{"cmd","/c","dir","//hfvs4//storage"}) i am getting any output, the program just runs and terminates.
help me to execute the "dir" on a network path.Shouldn't that be "\\\\hfvs4\\storage"?thanks a lot. that's a silly point i missed out.
-
Equivalent for execute immediate command in maxdb
hi all,
like in oracle for executing the sql_query, we have execute immediate command.
for e.g.. in oracle
L_SQL ='SELECT * FROM EMP';
EXECUTE IMMEDIATE L_SQL;
what will be the command for execute immediate in MaxDB??
like in MaxDB
L_SQL = 'SELECT * FROM EMP';
Now How can i execute the above l_sql variable in MaxDB.
thanks, BhupinderHi Bhupinder,
the following code snippet should do the job
[code]
CREATE DBPROC EXAMPLE
AS
VAR statement1 char(100);
SET statement1 = 'SELECT * from DBA.DUAL';
TRY
EXECUTE statement1;
CATCH IF $rc <> 100
THEN STOP ($rc, 'unexpected error');
[/code]
Best regards,
Marco -
How execute external command .sh in WorkFlow process?
Hi, i need execute a command, for example, <nombre>.sh with 3 parameters in a WF process.
This script .sh has command for execute ftp.
How can i do?
Thanks.Hi,
You need to wrap the call in either PL/SQL or Java and invoke that from a standard Workflow function API.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
I am attempting to write a SQL command for a Crystal report that links tables from two different databases, both of them Progress databases.I keep getting syntax errors that the table from the other db (meaning not the one I opened in DB Expert) can't be found. If someone has experience with Progress or otherwise has any ideas it would be greatly appreciated.
I'm not familiar with Progress, but does it have something like MS SQL's OPENQUERY using Linked Servers (which allows you to query a different DB server from the one you're connected to)? If not, you'll probably have to use two different SQL Commands to base the report on, then use Crystal to link the returned data sets. (I'm assuming "a different database" means "a different database server", not a different database on the same server instance...)
HTH,
Carl -
Issue with Executing OS commands from Stored Procedure
I am trying to execute the scripts provided at :
http://github.com/xtender/XT_SHELL
provided by xtender user.
As required, I have asked my DBAs to grant privileges by executing the following scripts:
Begin
--change to needed permissions and execute
dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/factiva/ODS/bin/CVIM_Rpt_ExportCSVFile’, 'read,write,execute' );
end;
/where CVIM_Rpt_ExportCSVFile is my script residing in the Unix server where my Oracle is installed.
The error I am facing when I try to execute the following command is:
select * from table(xt_shell.shell_exec('/var/scripts/CVIM_Rpt_ExportCSVFile',100))
Exception:the Permission (java.io.FilePermission /var/scripts/CVIM_Rpt_ExportCSVFile execute) has not been granted to ODS. The PL/SQL to grant this is dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )I have asked my DBA to also execute the following scripts: - But I still see the same error as above. I am not able to figure out whats going on. Can anyone pls help me out??
EXEC Dbms_Java.Grant_Permission('ODS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
EXEC Dbms_Java.Grant_Permission(ODS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )DUPLICATE
===============================================================
Issue with Executing OS commands from Stored Procedure
============================================================== -
How to create a password file for executing psadmin command to deploy portl
how to create a password file for executing psadmin command to deploy portlet
What you have done is perfectly right. The password file doesn't have anything else apart from the password
for example in your case
$echo password > /tmp/password.txt
However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
The solution was,
manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
HTH -
Issue While executing the Query for Pagination using ROWNUM with like
Issue While executing the Query for Pagination using ROWNUM with like.
Database is Oracle11G.
Oracle Database Table contains 8-9 lakh records
1) SQL equal (=)
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE A.REFERENCE = 'KMF22600920'
Execution Time:- 0.00869245 seconds
Returns 2 resultsets
2) SQL like (one %)
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE A.REFERENCE = 'KMF22600920%'
Execution Time:- 0.01094301 seconds
Returns 2 resultsets
3) SQL like (two%)
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE A.REFERENCE like '%KMF22600920%'
Execution Time:- 6.43989658 seconds
Returns 2 resultsets
In Pagination, we are using Modified version of SQL Query 3) with ROWNUM as mentioned below :-
4) SELECT * FROM (
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) WHERE RNUM > 0
Execution Time:- Infinite
ResultSets:- No as execution time is infinite
a) Instead of like if we use = in the above query it is returning the 2 resultsets (execution time 0.02699282 seconds)
b) Instead of two % in the above query, if use one example REFERENCE like 'KMF22600920%' it is returning the 2 resultsets (execution time 0.03313019 seconds)
Issue:- When using two % in like in the above query i.e. REFERENCE like '%KMF22600920%' AND ROWNUM <= 20 ) , it is going to infinite.
Could you please let us know what is the issue with two % used in like and rownum
5) Modified version of Option1 query (move out the RNUM condition AND RNUM <= 20)
SELECT * FROM (
SELECT /*+ FIRST_ROWS(n) */ ROWNUM RNUM, A.* FROM LINE A
WHERE REFERENCE like '%KMF22600920%' ) WHERE RNUM > 0 AND RNUM <= 20
Execution Time:- 7.41368914 seconds
Returns 2 resultsets
Is the above query is best optimized query which should be used for the Pagination or still can improve on this ?This would be easier to diagnose if there was an explain plan posted for the 'good' and 'bad' queries. Generally speaking using '%' on both sides precludes the use of any indexes.
-
Could not execute auto check for display colors using command /usr/
I am trying to Install Oracle 10g R2 on Solaris X86 32 bit
I am connecting to system from my windows vista laptop through putty... I get the following error...
$ ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be 5.10. Actual 5.10
Passed
Checking Temp space: must be greater than 250 MB. Actual 1214 MB Passed
Checking swap space: must be greater than 500 MB. Actual 1799 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/openw
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,at which time they will be rechecked.
Continue? (y/n) [n] n
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/Or
I have done the following:-
# DISPLAY=192.168.1.133:0.0; export DISPLAY
# echo $DISPLAY
192.168.1.133:0.0
# xhost+
xhost+: not found
# xclock
xclock: not found
I know that I have to do the following:-
1. Install SUNWxwplt package ========> Is already Installed
2. Set DISPLAY variable
3. Execute xhost + on target (set in DISPLAY) computer
# pkginfo -i SUNWxwplt
system SUNWxwplt X Window System platform software
Some sites claim xming and some xwindows etc.... Plz give me a step by step instruction as how to overcome this..
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display:
bash-3.00# DISPLAY=192.168.1.133:0.0; export DISPLAY; echo DISPLAY
DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# pwd
bash-3.00# find . -name xhost
./usr/openwin/bin/xhost
^C
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00#
# echo $PATH
/usr/sbin:/usr/bin
I have also gone through the below ... but was not of much help
Unable to execute runInstaller: Check if the DISPLAY variable is set
Plz help
Edited by: [email protected] on Feb 11, 2009 5:16 AMbash-3.00# echo $SHELL
/sbin/sh
bash-3.00# echo $DISPLAY
bash-3.00# DISPLAY=192.168.1.133:0.0;export DISPLAY
bash-3.00# echo $DISPLAY
192.168.1.133:0.0
bash-3.00# /usr/openwin/bin/xclock
Error: Can't open display: 192.168.1.133:0.0
bash-3.00# man xclock
No manual entry for xclock.
bash-3.00# /usr/openwin/bin/xhost +
/usr/openwin/bin/xhost: unable to open display "192.168.1.133:0.0"
bash-3.00# -
Could not execute auto check for display colors using command /usr/bin/X11/
Hello,
In a work trying to install ORACLE 11gR2 software in AIX 5.3,
export DISPLAY=local_IPXXX:0.0
xclock
it works, can see the clock.
then go to dowloaded oracle, run
/xxx/11g203_AIX64_5L/database-> ./runInstaller
Your platform requires the root user to perform certain pre-installation
OS preparation. The root user should run the shell script 'rootpre.sh' before
you proceed with Oracle installation. rootpre.sh can be found at the top level
of the CD or the stage area.
Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle
installation.
Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
Has 'rootpre.sh' been run by root? [y/n] (n)
y
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 190 MB. Actual 7470 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
Checking monitor: must be configured to display at least 256 colors
>>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<<
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,
Continue? (y/n) [n] n
User Selected: No
any idea to fix?
thanks a lot in advancethank you for response
in log, it shows
Using paramFile: /xxx/11g203_AIX64_5L/database/install/oraparam.ini
Checking Temp space: must be greater than 190 MB. Actual 7194 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6144 MB Passed
Checking monitor: must be configured to display at least 256 colors Failed <<<<
>>> Could not execute auto check for display colors using command /usr/bin/X11/xdpyinfo. Check if the DISPLAY variable is set.
Some requirement checks failed. You must fulfill these requirements before
continuing with the installation,Continue? (y/n) [n]
User Selected: No
Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2012-09-17_04-08-40PM/installActions2012-09-17_04-08-40PM.log
~
--so nothing new as screen shows.
--ok, anonther way, say yes, shows..
continuing with the installation,
Continue? (y/n) [n] y
Ignoring required pre-requisite failures. Continuing...Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-09-17_04-00-30PM. Please wait ...xxxx:/xxx/11g203_AIX64_5L/database-> Exception in thread "main" java.lang.NoClassDefFoundError: sun.awt.motif.MToolkit (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit$2.run(Toolkit.java:864)
at java.security.AccessController.doPrivileged(AccessController.java:192)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:847)
at com.jgoodies.looks.LookUtils.isLowResolution(LookUtils.java:484)
at com.jgoodies.looks.LookUtils.<clinit>(LookUtils.java:249)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:135)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:163)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1812)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:510)
at oracle.install.commons.util.Application.startup(Application.java:780)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:165)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:182)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:348)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:124)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:155)
Edited by: 951932 on Sep 17, 2012 2:12 PM
Maybe you are looking for
-
Hi, We have a BW report which was published in WEB. It is based on one infoset. The variable screen has date entry in range. when i give one date in the variable screen , iam getting the output. But if i give a range , then , the query runs but th
-
HP LaserJet P2015 not printing via network
Hi, looking for help. I cannot print via the network on HP LaserJet P2015. It works via USB. When I try to add the printer it is identificable by Bonjour (Nearest Printers). It tries to configure the printer and appears as being active (green dot) b
-
hi there While I'm just a beginner right now it/I'm an experienced computer user and I have really enjoyed/but when I'm looking at it now I'm trying to use flash to edit a website template, for example monster templates. I bought a template from the
-
we found a broken symbolic link /platform/sun4u/kernel/drv/sparv9/disk_ata this is on a V440, Solaris 9 would like to ask, any issue if we remove this link, think it should not be a problem, but this is a live server. Thanks!
-
USER_CREDIT_CHECK1 - How to implement it
Hello Experts, The requirement is to make some checks using USER_CREDIT_CHECK1 and i understand this exit is a subroutine and available in Include LVKMPFZ1. Now my question is how do i code it? should i be using CMOD/SMOD or should i get access key a