Hi,
Can someone point me in the right direction please?!
I am trying to connect to an industrial product using Android over Bluetooth. The device does not support pairing. I have written an application in WM6.5 and that works fine.
The sequence of events is:
Discover device and establish a Bluetooth Serial connection (the device does not support passkeys/pairing).
Request a key from the product (by sending a hex string)
Read string and send back a response based on the key and a user entered password (by responding with another hex string).
Is there an example anywhere that I can download?
I have downloaded some BT serial terminal emulators but they all want to pair with the device.
In Windows 7 you can simply search, connect and choose to connect without pairing and then the device appear as a BT serial port.
Thanks in advance.
Related
Hello everybody,
I try to connect the MDA with a serial device like Cisco Router or simply an PC with Terminal emulation . I made a cable which connects PIN 8 with RX (on the other device) PIN 10 with TX on other device and PIN 19 with GND; Then I opened a Terminal programm called "Term force" with Properties (9600,8,n,1,Serial 1) on MDA.
But nothing happened !! At least, it should be possibly to send a string to the PC with "Hyper Terminal" opened.
Could anybody tell me which mistake I do !
I am considering purchasing the T-Mobile Pocket PC Phone. I need the ability to connect a wireless device to my laptop while I travel. Can I connect the T-Mobile pocket pc phone to my laptop? If so, do I need a cable for that or can I do it via IR?
Thanks,
Brian
Wireless modem on XDA is serial cable or irda. Be sure to disable activesync before and connect your phone to laptop before pushing the "start", button.
So will W2K automatically detect it as a modem?
Well, actually not really. Regarding the infra red connection, I had to install first a virtual infra red port (http://www.cyber-mill.com/irdaw2k.zip), and then install on it the standard 33.6 Modem.
If you want, I can post how to do this, step by step, and it works.
Tekflow said:
Well, actually not really. Regarding the infra red connection, I had to install first a virtual infra red port (http://www.cyber-mill.com/irdaw2k.zip), and then install on it the standard 33.6 Modem.
If you want, I can post how to do this, step by step, and it works.
Click to expand...
Click to collapse
That would be awesome if you would do that.
Thanks!
Brian
http://xda-developers.com/phpBB/viewtopic.php?t=2643&highlight=modem
in this thread there is an url to a pdf which explane how you do it step by step
USING XDA AS A MODEM
example for GPRS connection
Before installation, note carefully (for your GPRS connection):
The access point name of your network provider
Your username and password
PS: if you don't know the access point name, open -on your device- settings/connections/internet settings
press on modify... then press on your GPRS connection
press on next: you will see the access point name.
Preliminary step: for infrared use only (skip for serial connection)
unzip irdaw2k (download from: http://www.cyber-mill.com/irdaw2k.zip)
click on setup, wait till end of installation
open your pc control panel/system/hardware/device manager
Click on ports and note on what port the infrared virtual com is installed (example: com5)
Step one: installing modem
open control panel/phone and modem options
choose modems tab. click add...
check don't detect modem
select from standard modem types: standard 33600bps
click next. install on selected port (com5 in this example)
after end of installation, click on properties for the modem
on tab Modem, confirm maximum speed 115200
on advanced, extra initialization type: AT+CGDCONT=1,"IP","xxx","",0,0
where xxx is the access point name of your network provider
select change default preferences
change flow control to none
clik OK to finish
Step two: setup the network
In control panel/network connections/ select file/new connection
select connect the internet, then manual setup
choose connect using modem. confirm the standard 33600bps
Give a name to the ISP
Choose: *99# as phone number.
write your username and password
do not use dialing rules
Step three: using XDA
Make sure activesync is disabled
Once connected through serial port or facing IR
Open wireless modem. choose connection (serial or IR)
click on start
wait for confirmation of connection on PC
Start dial-up from PC
ps: during this time, GSM phone line is disconnected
It reconnects automatically after disconnecting the modem
Hi guys,
I want to connect to activesync on my pc.
The problem is i only have COM6 & COM7 available on my S200,
so I assign the COM6 in Activesync but can't select COM6 in my Bluetooth
utility.
When trying to synch the S200 is giving me cannot find an existing bluetooth partnership with a pc that supports activesync.
Am i'm doing something wrong here?
any help is appreciated
cheers
koenie said:
Hi guys,
I want to connect to activesync on my pc.
The problem is i only have COM6 & COM7 available on my S200,
so I assign the COM6 in Activesync but can't select COM6 in my Bluetooth
utility.
When trying to synch the S200 is giving me cannot find an existing bluetooth partnership with a pc that supports activesync.
Am i'm doing something wrong here?
any help is appreciated
cheers
Click to expand...
Click to collapse
My problem is same to you ,
Any one can help?
leeleeguo said:
My problem is same to you ,
Any one can help?
Click to expand...
Click to collapse
which bluetooth stack are you using?
toshiba?
gokhanmoral said:
which bluetooth stack are you using?
toshiba?
Click to expand...
Click to collapse
Thanks!
My PC is Dell M1210,and the bluetooth module is Dell wireless 355 Module
with Bluetooth 2.0+EDR Technology
leeleeguo said:
Thanks!
My PC is Dell M1210,and the bluetooth module is Dell wireless 355 Module
with Bluetooth 2.0+EDR Technology
Click to expand...
Click to collapse
generally, the incoming serial port for the pc over bluetooth is COM7.
however, sometimes it is not available to select in activesync or wmdc(for vista).
you can try to set it manually. try the followings:
- if your PC and phone is already bound over bluetooth, delete the relationship.
- start -> run -> regedit (enter)
- go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows CE Services
- you will see a REG_SZ (string) value named as "SerialPort". change it to COM7
- reboot the PC. try to bind over bluetooth again. this time you should see "ActiveSync Service" not "Serial Port" during the binding process. start the binding process from your phone, not from the PC.
if the incoming serial port is different than COM7, then use it. I am sure there is something in the control panel to let you add/delete/modify that setting. check it before starting.
good luck.
gokhanmoral said:
generally, the incoming serial port for the pc over bluetooth is COM7.
however, sometimes it is not available to select in activesync or wmdc(for vista).
you can try to set it manually. try the followings:
- if your PC and phone is already bound over bluetooth, delete the relationship.
- start -> run -> regedit (enter)
- go to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows CE Services
- you will see a REG_SZ (string) value named as "SerialPort". change it to COM7
- reboot the PC. try to bind over bluetooth again. this time you should see "ActiveSync Service" not "Serial Port" during the binding process. start the binding process from your phone, not from the PC.
if the incoming serial port is different than COM7, then use it. I am sure there is something in the control panel to let you add/delete/modify that setting. check it before starting.
good luck.
Click to expand...
Click to collapse
It's ok,also need to del the unused serial port
Thank you
Hello
I've managed to select the incoming port in Activesync to COM6
and set the outgoing port on my S200 to COM6
but the pda is reporting that he doesn't find a computer that supports Activesync, although they are paired
I'm using the Widcomm stack
the widcomm program is reporting these 3 services are available on the pda:
- Connect NPA & Dialup & voice Gateway, serial port is not one of them
Hi I have just noticed in the nokia diagnostic tool in the bottom right the three dots when pressed gives you settings option and within that option it says usb mode Zune or usb serial with an option to choose which one ... What's this serial in this case ?? Will this allow direct access to hdd and find a way to use as mass storage ? or can we use this to access the cpu or other parts of the phone ?? im not sure were the serial point to yet ...
Probably that would be the way to flash rom.
It seems to be used for reparing the device or OS level software debugging - it won't give you USB Mass storage device....Or it maybe if you found the right driver...from Nokia Engineer. On HTC phones, this can be used for tethering with the right driver.
Serial Ports are the port that were used for Modem and Mouse before USB was invented (COM ports) It is the very basic form of communication port that most device implements - which the chipset on Lumia also emulate Serial Port over USB cable. (http://en.wikipedia.org/wiki/Serial_port)
Ahhhh ok thanks very much guys
Didn‘t notice that before, I'll poke at it using a serial debugger once I get home, could be some interesting/fun stuff that can be done
In winxp you can load a driver for a system device. maybe at driver level the connection data can be verified. How:
connect in serial mode. it will at first time detect a nokia rm801 or whatever device and ask for a driver. it finds 4 devices.
for the first, the xp system will itself suggest
1) USB Composite Device
2) will not find anything, and show the dialog to go onto internet, search etc.
Don't search and choose the driver to install yourself, with the downmost radiobutton and click next, in the categories go to System Devices, the driver assist will suggest a Compaq Deskpro Thermal Sensor, install this. Will install without error
3) see 2.
4) see 2.
Because it installs a temperature sensor driver, it must be possible to monitor or probe somehow. help?
My guess that will only gain you access to temprature data from the phone.
Have you tried putty and a baudrate of 9600? this is the most common used baudrate, tho It is quite possible they use 16000 instead if the serial connection is ment to handle data transfer.
I've been looking at the schematics for the phone and I can not seem to find out which chip they have used for GPIO. We would probably need to get hold of service level 3 or 4 manuals for Nokia Care (unless someone wants to dissasemble their phone and have a look at the mainboard)
Edit:
After a bit more digging I think I've traced serial to be managed directly by the CPU.
This suggests that it's a purely SW serial console.
I haven't been able to find any details on WP7/7.1/7.5 SW serial.
Worth looking into but I guess would require disassembly of the software?
what is the protocol for example when doing a software update through Zune? It gets into some kind of bootloader mode then too.
can imagine the serial connection is hosted as sw in the phones sw environment when running the mango os. But is the serial mode still fully sw if you boot it? Don't know if you could find anything in the 15 sec of booting to mango
I think the easiest way of figuring out how this is done is to disassemble the .net library that is used in the WP7 update tool.
I will have access to the required tools when I get home. The tool is this one if you want to get cracking on it:
http://xboxmod.sylvester20007.com/TOOLS/WP7_update_tool.rar
Hello,
I am writing here to see if somebody faced this problem before. I am trying to control a very specific Hardware from an Android device using the android-serialport-api lib: code.google.com/archive/p/android-serialport-api/
My hardware uses a RS232 connector and I connect it to Android with a USB to RS232 adapter, just as it shows on the "solution 2" of this image: code.google.com/archive/p/android-serialport-api/wikis/android_to_rs232_guideline.wiki (Solution 4 seems to be the ideal one, but I do not understand it, I will appreciate any indication here as well)
When I try to open a connection to the port, I always get an error indicating the the connection can not be open. The problem with this approach is, as the wiki mentions, you "may need to root your device in order to change /dev/ttyUSB0 file permission, and to load a kernel module.".
Does anybody had to root their device in order to be able to open tty connections? The tablet I am using is a HANNSpree HSG1351 (which I could not find any rooting guide).
Thanks
I will answer myself here just in case it can be useful for someone else in the future:
I ended up using this serial controller for Android, which makes read / write operations easy: github.com/felHR85/UsbSerial
Before being able to open a serial connection with the device, you should give permissions to the USB as it is explained here: developer.android.com/guide/topics/connectivity/usb/accessory.html#permission-a
Just to clarify, this is generic for any device, doesn't matter if it is rooted or not.