OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: obscurite on October 18, 2004, 02:06:23 pm
-
Anyone using the ZThinCable or other serial cable plus terminal emulation software (minicom, zconsole, JeTermZ, etc) with their Z?
Personally I own a C860, and I'd like to use it to connect to and admin several types of devices, including PC's, Sun's, Cisco and Checkpoint boxes, and other random appliances.
Please share your reccomendations/stories on serial connectivity. Thanks.
-Daniel
links:
zThinCable/JeTermZ - http://www.serialio.com/products/adaptors/ZThinCable.htm (http://www.serialio.com/products/adaptors/ZThinCable.htm)
-
That sounds awesome, I've never tried it though.
-
Personally I own a C860, and I'd like to use it to connect to and admin several types of devices, including PC's, Sun's, Cisco and Checkpoint boxes, and other random appliances.
I do use my 760 to admin Sun machines via serial Port. I had no problems using the Z for the SUN machines with a "normal" serial port (9-pol or 25-pol).
I'm not using the ZThinCable - I use a cable similar to this from my local reseller in Germany.
Regarding the newer Sun machines with RJ12 serial ports I'm still looking for an adapter to use these ports with my Z.
On the Z I use kermit for this purpose.
HTH
Bernd
-
I've also got the Zthincable for my C860, but still have not been able to get it to connect to my Sun processor.
Tried minicom, zconsole and kermit, but never managed to get the terminal to
return anything. All I want is a 9600,8,N,1 serial connection
Anybody give me a pointer as to what I've missed
-
I've also got the Zthincable for my C860, but still have not been able to get it to connect to my Sun processor.
Tried minicom, zconsole and kermit, but never managed to get the terminal to
return anything. All I want is a 9600,8,N,1 serial connection
Anybody give me a pointer as to what I've missed
I've also got the Zthincable for my C860, but still have not been able to get it to connect to my Sun processor.
What kind of SUN machine?
Tried minicom, zconsole and kermit, but never managed to get the terminal to
return anything. All I want is a 9600,8,N,1 serial connection
Don't know about the Zthincable - maybe you need a null modem?
regards
Bernd
-
Ditto to the null modem. The Zthin cable is made for the PC end to be the host machine not the peripheral.
-
What about using a modem card and connecting to a modem on the other machine? Should this work? Has anyone done it. I tried and failed.
-
I have the ZThin cable and also the Bluetooth Aircable. Both work great with kermit and my c860. I use it with Linux servers, terminal servers, switches, etc...
I prefer the Aircable, I can configure a switch 30 feet away.
With Aircable you have two options. I have tested both.
1. Z and host serial adapters.
2. Host only with Z BT adapter.
Add Expect to your kit. I use Expect to automate kermit to configure switches and save a lot of typing.
-
Thanks for all your suggestions. Keep them coming.
datajerk - there are two modules for the aircable (Z + serial) right? Can you use the serial module part by itself with a BT enabled laptop? Or does it require use of the Z module? I wasn't sure after skimming their tech specs.
-Daniel
links:
http://www.aircable.net/AIRcable/ZaurusSerial.html (http://www.aircable.net/AIRcable/ZaurusSerial.html)
http://www.aircable.net/AIRcable/SerialTech.html (http://www.aircable.net/AIRcable/SerialTech.html)
-
The DB9 male Aircable BT Serial adapter is pinned like a PC DB9 male and will work standalone with any BT host that supports BT serial devices. I use it with my XP BT enabled nookbook and also with my Z's Bluemonkey BT adapter.
Out the box Aircable defaults to pairing only with other Aircable products, you will need to connect at 115200 to a serial port and send a few commands to switch modes. Once switched to BT serial provider mode you can browse for it from any BT host. Settings remain until you reset the device.
-
Out the box Aircable defaults to pairing only with other Aircable products, you will need to connect at 115200 to a serial port and send a few commands to switch modes. Once switched to BT serial provider mode you can browse for it from any BT host. Settings remain until you reset the device.
Oh, maybe this is why I've been having hell with the Aircable I got today. Can't get it to pair with my mobile phone. So maybe it's set to pair only with an Aircable, like you say.
Could you specify how I can switch it, so that it pairs with my mobile, like you mention above?
Thank you.
-
I was referring to the DB9 adapters, they default to pair with other Aircable products like the Zaurus serial BT adapter.
I found this on their website for Zaurus serial BT pairing with phones. I actually use a BT CF card for my phone, never tried the Aircable with a phone.
http://aircable.net/AIRcable/ZaurusCellTech.html (http://aircable.net/AIRcable/ZaurusCellTech.html)
-
I thought you were referring to this (http://www.aircable.net/AIRcable/Quickstart2.html). It does say here something about changing modes.
I can't pair the device according to the how-to from their site that you point to.
So thought maybe if I could change the mode as you were talking about it in accordance with what the page above says it'd work...
-
That is the document I used to set the DB9 adapters to pair with my Z Bluemonkey BT adapter and my XP notebook.
-
Oh, can I then change the mode on the Aircable too?
How did you do it on the Z?
I installed minicom on the zaurus, configured it for the Aircable, i.e. the baud parity and stuff.
But how do I send the ctrl-A ... commands to the Aircable then?
-
I used kermit and an Expect script to automate it. I use my Zthincable to connect the DB9 Aircable to my Zaurus, then run the following script:
aircable settings (to check settings).
aircable mode service (to change to serial service provider mode for my XP machine and Zaurus BT with CF BT card.
aircable mode cable (to change back to aircable mode for use with other aircable products (I use all 3)).
#!/usr/bin/expect
log_user 0
set command [lindex $argv 0]
set mode [lindex $argv 1]
spawn kermit -y /dev/null
set timeout 5
expect {
"C-Kermit>" {
send "set line /dev/ttyS0\r"
expect {
"C-Kermit>" {
send "set speed 115200\r"
expect "C-Kermit>"
send "c\r"
expect "other options."
sleep 1
set send_slow {1 .2}
if {$command == "settings" } {
send "\001H\r"
expect -re "Command interface help.*our addr: \[0-9A-F\]{12}"
regsub "Command interface help\r\n(.*)" $expect_out(0,string) {\1} out
puts "$out"
sleep 1
send "\001N\r"
expect -re "\r\n.*\n"
regsub "\r\n(.*)\n" $expect_out(0,string) {\1} out
puts "Name: $out"
sleep 1
send "\001D\r"
expect -re "services: .*\r"
puts "$expect_out(0,string)"
}
if {$command == "mode" } {
if {$mode == "service" } {
send "\001DDS\r"
expect -re ".*OK.*"
regsub ".*(OK).*" $expect_out(0,string) {\1} out
if {$out != "OK" } {
puts "enable discover failed"
}
sleep 5
send "\001A3\r"
sleep 5
send "\001H\r"
expect -re "Command interface help.*our addr: \[0-9A-F\]{12}"
regsub ".*(mode .).*" $expect_out(0,string) {\1} out
if {$out != "mode 3" } {
puts "service slave failed"
}
}
if {$mode == "cable" } {
send "\001A1\r"
sleep 5
send "\001H\r"
expect -re "Command interface help.*our addr: \[0-9A-F\]{12}"
regsub ".*(mode .).*" $expect_out(0,string) {\1} out
if {$out != "mode 1" } {
puts "cable slave failed"
}
sleep 5
send "\001DUS\r"
expect -re ".*OK.*"
regsub ".*(OK).*" $expect_out(0,string) {\1} out
if {$out != "OK" } {
puts "disable discover failed"
}
}
}
sleep 1
send "\034c"
expect "C-Kermit>"
send "close\r"
expect "C-Kermit>"
send "quir\r"
exit 0
}
timeout {
puts "kermit timeout"
exit 1
}
}
}
timeout {
puts "kermit timeout"
exit 1
}
}
-
NOTE on the above, I have never tested this script with the ZAircable dongle, only the male and female DB9 BT adapter.