nedd help on bluetooth HFP - C, C++, C# and Other Windows Phone Development

Hello
To create an app for a supplier a need to send a square signal to command his RadioCommanded CAR
I have to create a “pulse” with a 8khz sampling rate. Each
basic packet is one byte.
The total control packets are two bytes.
The start bit is composited of the 20/8000“High”and 10/8000 “Low”second.
and same for each bit.
For a example , if the bit is One.
It should pull high the signal to 1/8000 second x 6 and pull low the signal to
1/8000 second x 2.
Does windows phone has a control to create that?
Thank you for your help I have to say I am very lost.
Ceriboo

Related

Can GPS get a silent fix?

When I get in the car and turn on bluetooth, a script starts to run in conjuction with my car stereo for handsfree and audio etc.
I would like to add a command to the script that switches on GPS straight away and gets a fix in the background so that if I get lost or stuck in traffic I can run TomTom and the fix will have already been established thus enabling me to navigate to where I need to be more efficiently?
Is there such a way of doing this?
the simplest idea I have is to run a 3rd party app such as gpsgate when your script runs.
debully,
I did think about using a 3rd party app but wondered if the trinity is capable of getting a fix just by enabling GPS and not running any other app?
The problem is that using A2DP is quite CPU greedy. Running another app will just add to it. Incidently, I've read posts where people are quoting percentages of CPU used by certain programs, how is this done?
interested as well
Let me know if you get a way to do this... I would be interested as well.
;-)
-Daniel
If you'd like to have a GPS fix all the time (even when you push the power button for 'stand by') you will have to modify the radio rom..
But for in-windows usage you could install a program with a virtual COM port that redirects the GPS data.. (so, when your batch file is ran this program will open and connect to the GPS port.. it wil create another COM port and when tomtom connects it will have a fix instantly)
I use gpsgate, not only does it give me a fix all the time when I set it to run on softreset, it can send your position to googlemaps so people can track you if you want and other nifty stuff.
Floriz said:
If you'd like to have a GPS fix all the time (even when you push the power button for 'stand by') you will have to modify the radio rom..
But for in-windows usage you could install a program with a virtual COM port that redirects the GPS data.. (so, when your batch file is ran this program will open and connect to the GPS port.. it wil create another COM port and when tomtom connects it will have a fix instantly)
Click to expand...
Click to collapse
I downloaded a little app called ODGPS (900KB cab file and free) It took a while playing around with the settings to get a fix but once the fix was there I opened TomTom and it knew where I was almost instantly.
I stumbled across a website yesterday with links to other sites of free gps software. http://www.maps-gps-info.com/fgpfw.html (where I found ODGPS)
My plan is to test a number of programs from here to establish a) how much memory they use and b) how quick they get a fix.
Once I have found a small enough app with a fairly quick fix I shall implement it into my script. Now if someone could just tell me how I monitor the CPU usuage of each app?
mcq3000
How memory hungry is gpsgate?
neomagik said:
I downloaded a little app called ODGPS (900KB cab file and free) It took a while playing around with the settings to get a fix but once the fix was there I opened TomTom and it knew where I was almost instantly.
I stumbled across a website yesterday with links to other sites of free gps software. http://www.maps-gps-info.com/fgpfw.html (where I found ODGPS)
My plan is to test a number of programs from here to establish a) how much memory they use and b) how quick they get a fix.
Once I have found a small enough app with a fairly quick fix I shall implement it into my script. Now if someone could just tell me how I monitor the CPU usuage of each app?
Click to expand...
Click to collapse
you can use "BatteryStatus", very small today-plugin that shows you the energiedrain... more cpu = more energiedrain
I'm getting closer to having this working:-
ODGPS is not ideal because it seems to freeze the phone after a while. It also makes a funny tapping noise every 2 or 3 minutes and for some reason and I can't disable it.
I'm now experimenting with NoniGPSPlot, a very small program that runs easily in the background. You can save a track of your journey too and view it on google earth.
Once it's established a fix, TomTom will fix almost instantly.
I've integrated it into my script so that it opens and minimizes as soon as I switch to 'car' profile. My phone then detects my stereo and connects to it for handsfree profile, then for wireless stereo.
What would be cool is if I can get it to display a message telling me that a fix has been established and likewise when the fix is lost. The trouble is I can't find what registry change takes place once it has a fix.
neomagik said:
I'm getting closer to having this working:-
ODGPS is not ideal because it seems to freeze the phone after a while. It also makes a funny tapping noise every 2 or 3 minutes and for some reason and I can't disable it.
I'm now experimenting with NoniGPSPlot, a very small program that runs easily in the background. You can save a track of your journey too and view it on google earth.
Once it's established a fix, TomTom will fix almost instantly.
I've integrated it into my script so that it opens and minimizes as soon as I switch to 'car' profile. My phone then detects my stereo and connects to it for handsfree profile, then for wireless stereo.
What would be cool is if I can get it to display a message telling me that a fix has been established and likewise when the fix is lost. The trouble is I can't find what registry change takes place once it has a fix.
Click to expand...
Click to collapse
Wow this sounds great !!! I have just bought an A2DP capable car radio and I would love to being able to do exactly this. Can you share your script when its finished??
Kind regards
neomagik said:
I've read posts where people are quoting percentages of CPU used by certain programs, how is this done?
Click to expand...
Click to collapse
Task Manager
availible here: http://www.buzzdev.net/index.php?option=com_phorum&Itemid=125&phorum_query=read,27,15027
@ rdkay>
Which stereo do you have? The script I have written is specifically for the Pioneer DEH P75BT
I've just used ssnap to create 2 snapshots of my registry, the 1st with a gps fix, and the 2nd without. When comparing the files using ExamDiff there is no obvious change that takes place.
Does anybody know of a GPS program that creates or changes registry entries once a fix is established?
neomagik said:
@ rdkay>
Which stereo do you have? The script I have written is specifically for the Pioneer DEH P75BT
Click to expand...
Click to collapse
slightly off topic - apologies -
how do you find the DEHP75BT at registering and automatically recognising your phone?
I have a DEHP55BT (think it was the first BT radio available for under £200) and had loads of trouble with registration (had to use 'connect
wait') and unless I manually switch on BT on phone (mUn's WM6 SE) or manually tell the pioneer to connect nothing happens.
Also, when callers call me I cannot hear their voices through the speakers, but it's ok when I call them - do you have this problem?
neomagik said:
I've just used ssnap to create 2 snapshots of my registry, the 1st with a gps fix, and the 2nd without. When comparing the files using ExamDiff there is no obvious change that takes place.
Does anybody know of a GPS program that creates or changes registry entries once a fix is established?
Click to expand...
Click to collapse
GPSGate changes the colour of its icon that resides in the system tray (red -no gps data, yellow - gps data but no fix, Green - Fixed). Not sure if this is controlled by a registry setting but may be worth a look. GPSGate also lets you use more than one GPS app at once and allows you to delegate COM ports for output.
@ debully>
There is a very simple fix to enable the Pioneer to recognise and connect to your phone. You see the Pioneer is searching for a phone or a Smartphone, the Trinity identifies itself as a PPC and so the Pioneer ignores it.
The Class of Device or CoD must be changed so that the Trinity identifies itself as either a phone or Smartphone.
If you change the Dword Data value in.... HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\SYS\COD"
to 5374476 (decimal) and set bluetooth to discoverable in your Trin, you should find that it connects automatically.
It took me 8 months to find this out.
PS. I don't have the problem with not hearing the callers.
@neomagic
wow - thanks dude. Your a star!
To understand what you are dealing with in getting a "fix" you need to understand how the system works. When started for the first time in 2 hours (or whatever it's been programmed for) the gps does a cold start and needs to download almanac data from the sat's in order to determine their trajectories which is needed to calculate a fix. Once that data has been pulled, it's valid for a certain amount of time (about 2 hours if I'm remembering correctly). So, although no registry keys are going to change, the easy way to deal with this is to keep your own timestamp, and make sure to ping the gps with a fix request every 2 hours or so in order to keep it ready for a warm/quick start...
@ Shadowmite>
Thanks for the info, I've read similar information about cold/warm starts. A couple of questions though...
1) I can deal with the timestamp but how do I "ping" the gps with a fix request?
2) If I do ping a request every 2 hours and I'm indoors and can't get a fix, will it go back to needing a cold start?

Peek 9

Hi everebody!!!
I allready have the same topic http://forum.xda-developers.com/showthread.php?p=10736841#post10736841 but... its wrong position for it.
So...
Device called the Peek site peek9_com can only receive / send email, witter, facebook. There is no possibility of voice calls (connections) in hardware.
Is currently working on Nucleos OS by Mentor, plus the private GUI of the firm's Reek inc.
Need to port to Linux. Evaluate the possibility of porting.
Work is already underway on peeklinux_com
elinux_org
Problem: the producer (manufacturer) has promised to support the porting (access to gprs module, etc.), but later a support shut up and no longer responds.
In reality this is the case: the device is not locked, but to use it to login on their server (via sim T-Mobile US).
Accordingly, you write off a certain amount of money from the 10 - to 20 dollars per month, depending on the chosen tariff plan.
That is tied to the server from the company Peek.
Works with gmail, aol, windows mail, but through their intermediary server.
Has push mail.
In the States is working very badly, all complaining about the quality of communication, tech support.
Profit device is cheap, simple (only email, twitter, facebook,sms.)
So need to port to Linux,or unlock Nucleus OS - modify...
Everything is legal: indulgence from PEEK Inc.see at _geekypeek.com/?p=13_
Basic Specifications
320x240 TFT LCD
47 Key QWERTY keyboard
360 degree jogwheel with button
Vibrator Motor
Small Speaker
Side Push Button
Top Power Button
Standard SIM Socket
Micro-B USB Charging Socket
Internal Coin Backup Battery
E-Mail Notification LED
Battery Door Contacts Switch
ARM7 @104Mhz, (Host processor)
2.5-Mbit SRAM, single-cycle access @104MHz
1.5-Mbit ROM (Midi, JPEG… ) single-cycle access @104MHz
16-Kw ARM/cDSP RAM I/F (API), 2-cycle @104Mhz
Memory-mapped control & status register @52MHz
External memory extension Burst @52MHz
DSP Sub-System @104Mhz
c54x CPU based
30-K 16-bit word RAM (including 16-Kw API)
154-K 16-bit word ROM
10-K 16-bit word RAM (external to cDSP; Patch, MP3…)
Memory-mapped control & status register @52MHz)
Chip List
Spansion*71NS128NB0BJWRN 32Mb Psram + 128Mb NOR Flash*datasheet
TI*D6591BQA -*TCS2310
TI*T3031FZH - TWL3031 power management and IO control
RFMD*RF7115 Quad Band GSM850/GSM900/DCS/PCS TRANSMIT MODULE*datasheet
ST*STMPE2401 - Port expander with Keypad and PWM controller*Datasheet
26.00 MHz XTAL for the TCS2310
32.768 kHz XTAL for the TWL3031
Battery
Model: PK-BAT-001
Voltage: 3.7V
Capacity: 700mAh
Maximum Charge Voltage:4.2V
Standard: GB/T18287-2000
SIM
The comes with a T-Mobile SIM but is NOT locked to the T-Mobile network.
If you take off the battery case and remove the warranty sticker you will see the SIM.
We have tested AT&T and it works fine
External MicroUSB Charge/Upgrade port
This is the MicroUSB port that is exposed on the left side of the peek.
It's used for both charging and upgrading the Peek. The upgrade cable uses
a serial TTL to USB level shifter to convert the serial TTL into a USB com port.

Touschscreen hack

Hello, i am trying to figure ot how to connect touchscreen to simple mcu (like avr, stm32f4 or pic)
I made pcb so i can connect oscilloscope with I2C decode, and running program at the same time to see x y coordinates when i touch it. Problem is, by knowing x and y, and knowing what is on I2C buss, i can't figure out how it works , it a bit semi random data
Can any one help me with that, if some one has accuses to android touchscreen driver, to extract how they convert data from i2c bus to x y coordinates, that would be very helpful
Thank you

App to emit IR signal at desired frequency?

I'm sorry, this probably belongs in the "Apps" part of this forum.... but I was just wondering if anyone has heard of an app like this? I specifically want my OGP IR port to be able to emit a 56kHz signal. I am using an Arduino-powered infrared receiver for a project for my Engineering class and I wanted to test it, but I do not have access to a 56kHz IR beam anywhere besides in the Lab--to which I have limited access.
If I can't make the phone do the 56kHz signal is there any other at-home method for me to accomplish this?
Thanks!
As long as I recall LG didn`t give us documentation to work with the IR Emitter, only their app can do so and it isn't open source, so your with no luck, find a button from an appliance in the app that transmit at that frequency or can't be done (from what I researched.).
You can get something like this. You should be able to drive it from a signal generator (typically available in labs) or off of any headphone jack provided you use some sort of amplifier (say LM741 w/ gain set to 10-20) to get the signal up to 3-5v. You can use a phone with a signal generator app or even "playback" a square wave signal. Any device with a headphone jack should work, provided you "playback" the appropriate signal. Measure max output from your source and compute required gain.

Use Tablet as bluetooth Bluetooth Headset

Hi everybody. My name is Alex and i'm receiving a free tablet from my network carrier. It have low specs (dual core, 512 mb ram, 8gb ram, 7 inch) and i'm trying to give it an utility. So i decided to use it in my car for multimedia. Car Launcher Pro make it perfect for my use, gps receiver is ok. Tablet has 3G so i have network connection every where. So far so good but i need something more from it. I have my cellphone in a pocket and something like this. Someone calls me and i can't find my phone. How can i connect it to my tablet (maybe, bluetooth) to answer or close call from my tablet? New cars have this on their radios but mine's not. It's a VW golf 4. I found something. It's called : Tablet Talk: SMS & Texting App but it is old and not working at all (i can't answer or close call, only make calls and send sms)

Categories

Resources