Tapi code for analog phone line - vb.net

I have Bell phone line which is analog not digital. I am able to send faxes through windows fax and scan software provided by Microsoft but my tapi application, which works fine with digital lines (like magic Jack), is not working with my Bell phone line. I wonder is there any special code or trick that can work for dialing phone? My point is when Windows Fax and scan software is working on same line than why my application is not working. I have tried couple of application of third party tool but no success.
Any help would appreciate.
Thanks

You can add T prefix before you dialing number to set mode into Tone and send analog not digital signal.
TCountry(AreaCode)SubscriberNumber

Related

Grove Seeed Studio sensors not working properly with Intel Edison

I've been trying to run simple scripts on my Intel Edison to try the different Grove Seeed Studio sensors and cannot manage to make them work.
My board is configured correctly, its firmware is up to date, and all cables have been connected correctly as shown on different tutorials. I can connect to the board through the IDE, via SSH, and with serial.
I've been using mainly the templates provided by the Intel-XDK IDE because I'd like to develop using javascript and nodejs. The "Onboard LED Blink" template has worked perfectly. My board successfully blinked the onboard LED light so the board is clearly listening to my machine, but all the other templates have failed to make my sensors work. For example, running the "Local Temperature" template which aims to just retrieve the local temperature with the temperature sensor, just prints Sample Reading Grove Kit Temperature Sensor and stays there without printing any temperatures in the console. This has been the case for other sensors and other templates like the "Touch Notifier" template which when running also just prints Sample Reading Touch Sensor and performs no other actions when touching the touch sensor.
I tried moving away from the Intel XDK templates and trying some of Johnny-Five templates like this one and still no success. After running that particular script the console just printed Looking for connected device. I found a related post here but nobody was able to solve the issue.
It almost seems as if I am not being able to properly connect to the sensors. I get no errors on the console, just not the desired outcome. What am I doing wrong? How can I even debug this?
The samples in the XDK are at first glance a bit deceiving. The "Local Temperature" and "Touch Notifier" are designed to work with HTML5 companion apps on a phone for example (you can see this by reading the template description when you select it). Hench when you see the xdk printing the message out, it is first listening for a connection to the HTML5 app which is where it will send the temperature for display. There is an article about the "Local Temperature" app that goes into further detail and how to set everything up here: https://software.intel.com/en-us/creating-a-temperature-monitoring-app-using-intel-xdk-iot-edition
And if you want code for individual sensors, I recommend using this link here to search for code by sensor (each one should have code for c++, javascript, and python code samples): https://software.intel.com/en-us/iot/hardware/sensors

J2ME system notification / play sound when phone is locked

Good day all,
I have a java based phone (samsung star 2 5260) and it's three weeks that I'm trying to come up with a solution to receive notification on received emails.
The phone configures a periodic check for a minimum of 30 minutes, but I need a much more frequent control (five minutes maximum).
I have tried countless solutions, and I've come up with the closest one, being a custom mujmail midlet that supports my gmail mailbox over imap, deployed thanks to the netbeans editor.
Point is, I've modified mujmail's polling to run on the background, but audio does not play when the phone is locked, so even if the midlet checks and receives emails, it's unable to notify me. The application minimizes and keeps on running, but it's unable to tell me that new mail has arrived.
I've even tried sending an sms when there's new mail, but was unable to sign the application (looks like ktoolbar produces 1024 bit certificates, and thawte, verisign, etc. will only produce 2048 bit certs since a few years.), and so it'll always ask authorization, which renders this approach useless.
So I'm desperate to find an alternative.
And I was hoping that we can in some way emulate the 'system alert' that the phone uses when it's locked and you receive an sms (audio cue).
Is this a j2me functionality, or is it specific to the samsung sdk?
Does anybody have an idea of how to access this functionality from inside a midlet?
Is there a way to create a midlet in the trusted third party domain without signing it?
I know j2me is an old subject, but hopefully someone here is still knowledgeable about it.
Thanks in advance.
Looks like you're expecting too much from JavaME.
If it's possible to do what you want, you can be certain that it requires signing.
Basically you have to sign your MIDlet with a certificate that is supported on your phone. Most developers go for Thawte or Verisign, because their certificates are supported on the most devices.
If you're only interested in getting this to run on your own phone, it's possible you can find a much cheaper provider, like e.g. Samsung themselves. But I admit I don't know.
In any case, there's no way around signing, when you want to do things like this with JavaME.
(Well.... there's a tiny slim chance that your phone lets you set permissions, like "Never ask" in the MIDlet properties on the phone after installation, but only a tiny slim chance).
Even after signing your MIDlet, it still won't be able to wake up the phone. JavaME is a sandbox. If the user puts the phone to sleep, then JavaME can't wake it up. (At least not without special API's, which I don't think exists).
If it was me, I'd investigate this approach:
Implement PushRegistry timer to launch the MIDlet ever 5 minutes. This should theoretically launch the MIDlet despite the phone sleeping. (But not if it's turned off).
Then attempt if you can play an alarm sound here.
If you can't, then I'd look into sending an SMS to myself.

How to open a webpage from an arduino uno

I was wondering if it's possible to open an internet browser from code in your arduino IDE or any other sort of program connected to the arduino and in turn open a specific webpage.
My idea was to have a button on my arduino uno, once pressed, it would open a browser and a webpage in that browser on my connected computer.
I don't mind if the answer involves code outside of the arduino but it would be great if someone has an idea about how to do this sort of thing.
I've done a lot of research and I couldn't find anything relating to the topic which surprises me a lot as this seems like a simple task, anyway any responses would be greatly appreciated!
There are several ways to open a web page with the help of arduino.
But all of them have on thing in common and that is:
1.You receive the data in your PC
2.You tell your PC if the desired data is received open a webpage.
The best way I can think of telling you pc to open a web page is through a programming language. This could be C#,Java,Processing or any other language that has a library that support to monitor the serial port.
After that all you have to do is to say with the help of programming language if this received then open web page..
Here ara two useful links that might be of help:
http://forum.arduino.cc/index.php?topic=138974.0
http://whichlight.com/blog/arduino-serial-out-to-browser/comment-page-1/
The cheap and easy way would be to make your Arduino appear as a USB keyboard and simulate the keypresses required. Of course, this is prone to breakage if the user is typing, not very cross-platform, etc. but it is fairly simple and doesn't require a program on the machine. I received a small USB dongle attached to an ad once that did this. They found a key combination that worked on both Windows and Ubuntu.
With an ASP.Net application you can easily do that,here is a a tutorial on this issue.
And after getting a signal from arduino all you have to do is to write in ASP.NET to open the required link
Yes, its totally possible given that you know how to code in python.
You can have your own program running that will monitor request from arduino uno using serial port. When it receives a particular set of bytes (say "0xabcdef"), it will call the function to open a browser and a web page.
Here are some of the sites that will help you know how to interface arduino to python and opening web browser using python.
http://www.olgapanades.com/blog/controlling-arduino-with-python/
https://docs.python.org/2/library/webbrowser.html

Sending A Fax from a VB.Net program

I noticed that in Windows 7 there is a Program called Windows Fax and Scan that enables you to send a fax from a computer that has a fax modem.
I would like to do this from within my VB.Net WinForm application. Has anyone done this? Do you have an example you could post or point me to?
I ended up using a Commercial Porduct call FaxMan Jr.

Capture Keystrokes on Symbian OS?

How would one go about capturing users keystrokes in the SMS composer on the Symbian OS, specifically for a Nokia N73 (or any of the symbian supported devices http://en.wikipedia.org/wiki/Symbian_OS#Devices_that_have_used_the_Symbian_OS)? I'm new to symbian development and I'm trying to write an application to analyse writing styles of those who send SMSs. Any information (or push in the right direction) would be great.
Many Thanks,
A
Actually, you can capture keystrokes destined for any application in Symbian OS.
RWindowGroup::CaptureKey() and RWindowGroup::CaptureLongKey() allow your executable to capture keys from any applicaton, whether yours is in the foreground or not.
However, in this case this may prove to be tedious - these two functions work by capturing specific key codes and modifier combinations, so you would have to set up a lot of captures to deal with all the key combinations in the SMS composer.
You would also have to pass the event on to the SMS composer once your exectuable had captured it. Whilst nominally possible using RWsSession::SendEventToWindowGroup() or TApaTask::SendKey(), there are complexities involved the events arrive in right order (i.e. key down, key event, key up) and behaviour of different FEPs (Front End Processors) for user input.
So whilst it is nominally feasible to do what you require as above, it would prove to be tedious to implement and test, bordering on the risky. If all you want to do is analyse writing style to collect data (rather than in a product app), you might be better off writing your own SMS composer - there are plenty of examples on the Forum Nokia web site of editors and SMS sending.
On a related note - is there an API that can detect all the keys being pressed at once as I stamp on my Symbian phone in frustration at its APIs? ;-)
Well, there are several levels to answering to your question.
The keystrokes are actually captured by the message editor application. So, either it provides an API to feed you all its keystrokes (you can look for one on http://forum.nokia.com. You'll find the message editor API but it will be mostly about re-using GUI controls and not what you're looking for) or you would need a transparent application of your own that stays in the foreground and captures keystrokes before feeding them back to whatever application happens to be right behind. Fortunately (for obvious security reasons), Symbian OS will not allow you to do the later.
You can, however, have your own application read messages when they are saved in the phone memory: when they are saved in the Draft folder or in the SMS Outbox.
The obligatory shameless plug: I would advise reading the messaging chapter of http://www.quickrecipesonsymbianos.com in order to understand how to use the Symbian Message Store
The classes of interest in your case are : CmsvEntry, CMsvSession, MMsvSessionObserver, CMsvOperation and CSmsClientMtm.