Serial Port Configuration Problem (SerialPortX 2.1 library)
First, thanks to the author for all of the hard work on this AppleScript library. It has worked sucessfully for me for the last two years.
However, I'm having a problem with a new-to-us scale in our laboratory. It's an older model and requires the communications settings to be 9600 / 7-E-1 with no handshaking. For novices such as myself that's 9600 bits per second, 7 data bits, even parity and 1 stop bit. I am able to successfully communicate with the scale via screen in Terminal or Serial Tools v0.4. The scale is physically attached to my Mac using a KeySpan USA-19HS serial to USB adapter.
By connecting my mac to a PC I've been able to successfully communicate between the two machines with an AppleScript using the SerialPortX library as long as all parameters match (e.g., bit rate, parity, stop bits and handshaking). The only time this fails is if the data bits is anything other than 8, which makes me think that a bug is preventing me from changing the default value (in my scale's case from 8 to 7).
Has anyone had any experience with this error? Is it possible to edit the script library to change the default to 7? Any other possible work-arounds (remember the scale is old and I can change the data bits on it)?Any advice or follow up questions are appreciated. Thanks for your time and consideration.
Thanks for the suggestion. Here's my AppleScript:
set {lf, cr} to {ASCII character 10, ASCII character 13}
set carriage_return to (cr & lf as Unicode text)
set myport to serialport list
set oh to choose from list myport
set PR to serialport open oh bps rate 9600 data bits 7 parity 2 stop bits 1 handshake 0
set cmd to "Q" & carriage_return
if PR is equal to -1 then
display dialog "could not open port "
else
serialport write cmd to PR
delay 10
set mystr to serialport read PR --for 30
delay 1
#set cmd to "OP" & lf
serialport close PR
end if
display dialog mystr
Similar Messages
-
Can't run form from Form Builder 10g - Port configuration problem?
Hi,
I have installed the Database (10.2.0.1.0) and the Developer Suite (10.1.2.0.2) on two Linux machines (Red Hat Enterprise Linux ES 4 Basic).
If I enter the frmservlet-URL manually everything seems to be fine.
In one case I enter http://127.0.0.1:8890/forms/frmservlet, in the other http://127.0.0.1:8889/forms/frmservlet; in BOTH cases I get eventually a dark square and the status bar says "Applet oracle.forms.engine.Main started".
HOWEVER, if I create a simple form with Form Builder and click on the Button with the green traffic light ("Run Form"), the form runs only on the machine where frmservlet listens on port 8890.
On the other machine (frmservlet configured to listen on port 8889) Firefox pops up, the URL "http://127.0.0.1:32979/6dOrpwghCqnp8PhMT7KVT533m3IaArqFbPqPBOztZXWYSsNy" gets called, and nothing else happens. The screen displays the string "ORACLE FORMS." and the status bar says "Waiting for 127.0.0.1...", and it stays like this forever.
I assume this is a port configuration problem, but I don't have a clue where to start.
Any suggestions how I should proceed are greatly appreciated.
Thank you very much in advance!Hi Frank,
Thank you for your reply.
I doublechecked my configuration.
In the dialog Edit --> Preferences --> Runtime the Application Server URL is set to "127.0.0.1:8889/forms/frmservlet".
However, when I attempt to run the form, the URL "http://127.0.0.1:33140/W2dwbV9eXS2fPkuKlxNhCxFWdEihwDviat2uV7ycrSotqwDN" gets called.
The screen displays the string "ORACLE FORMS." and the status bar says "Waiting for 127.0.0.1...", and that's it.
I wonder how the port number 33140 got selected. Interestingly, this time it is a different number; last time it was port 32979. In fact, the port number seems to change each time; I tried again and now it is 33189.
I will now try to set the port number for the frmservlet to 8890.
I choose Edit --> Preferences --> Runtime and set the application server URL to "127.0.0.1:8890/forms/frmservlet".
I stop the container, open /home/oracle/OraHome_1/j2ee/DevSuite/config/default-web-site.xml and change the port number to 8890:
<?xml version="1.0" standalone='yes'?>
<!DOCTYPE web-site PUBLIC "Oracle Application Server 10g XML Web-site" "http://xmlns.oracle.com/ias/dtds/web-site.dtd">
<!-- change the host name below to your own host name. Localhost will -->
<!-- not work with clustering -->
<!-- also add cluster-island attribute as below
<web-site host="localhost" port="0" protocol="ajp13"
display-name="Default Oracle Application Server 10g Java WebSite" cluster-island="1" >
-->
<web-site port="8890" protocol="http"
display-name="Oracle Developer Suite 10g instance of Oracle Containers for J2EE Web Site">
<!-- Uncomment the following line when using clustering -->
<!-- <frontend host="your_host_name" port="80" /> -->
<!-- The default web-app for this site, bound to the root -->
<default-web-app application="default" name="defaultWebApp" root="/j2ee" />
<!-- Do not delete this line. -->
<web-app application="forms" name="formsweb" root="/forms" />
<!-- -->
<!-- <web-app application="forms" name="formsweb" root="/forms" /> -->
<web-app application ="reports" name="web" root="/reports" />
<web-app application = "reports" name="demo" root="/repdemo" />
<!-- Access Log, where requests are logged to -->
<access-log path="../log/default-web-access.log" />
</web-site>
I restart the container, start Form Builder, connect to the database, and open my test form.
When attempting to run the form, the URL "http://127.0.0.1:33437/Pl0n3ky9vmU5z37A7ScBnQhsGwq3jwuzJpgTAKWPMOYIzT8K" gets called (again a new port number, apparently picked radomly within a certain range) and nothing happens: "Waiting for 127.0.0.1...".
However, when I enter the URL http://127.0.0.1:8890/forms/frmservlet I do (eventually, after confirming that I trust the certificate etc.) get a darc rectangle and the status message "Applet oracle.forms.engine.Main started", which tells me that my setup can't be that far off target.
Here is the output of netstat:
[root@localhost ~]# netstat -anp --tcp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32769 0.0.0.0:* LISTEN 2779/rpc.statd
tcp 0 0 0.0.0.0:23910 0.0.0.0:* LISTEN 5269/java
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2759/portmap
tcp 0 0 0.0.0.0:1521 0.0.0.0:* LISTEN 4265/tnslsnr
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 2983/xinetd
tcp 0 0 127.0.0.1:7830 0.0.0.0:* LISTEN 4429/spamd --port 7
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2928/cupsd
tcp 0 0 0.0.0.0:9240 0.0.0.0:* LISTEN 5269/java
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3002/sendmail: acce
tcp 0 0 0.0.0.0:8890 0.0.0.0:* LISTEN 5269/java
tcp 0 0 0.0.0.0:32795 0.0.0.0:* LISTEN 4231/ora_d000_orcl
tcp 0 0 127.0.0.1:1521 127.0.0.1:32817 ESTABLISHED 4265/tnslsnr
tcp 0 0 127.0.0.1:32817 127.0.0.1:1521 ESTABLISHED 4209/ora_pmon_orcl
tcp 0 0 127.0.0.1:33425 127.0.0.1:1521 ESTABLISHED 5298/frmbld
tcp 0 0 127.0.0.1:1521 127.0.0.1:33425 ESTABLISHED 5311/oracleorcl
tcp 1 0 80.133.127.83:33485 209.132.177.100:443 CLOSE_WAIT 4060/python
tcp 1 0 80.133.127.83:33484 209.132.177.100:443 CLOSE_WAIT 4060/python
tcp 1 0 80.133.127.83:33494 209.132.177.100:443 CLOSE_WAIT 4060/python
tcp 1 0 80.133.127.83:33520 209.132.177.100:443 CLOSE_WAIT 4060/python
tcp 0 0 80.133.127.83:33529 209.132.177.100:443 ESTABLISHED 4060/python
tcp 0 0 80.133.127.83:33528 209.132.177.100:443 ESTABLISHED 4060/python
tcp 1 0 80.133.127.83:33460 209.132.177.100:443 CLOSE_WAIT 4060/python
tcp 1 0 80.133.127.83:33470 209.132.177.100:443 CLOSE_WAIT 4060/python
tcp 0 0 :::22 :::* LISTEN 2968/sshd
tcp 0 0 ::ffff:127.0.0.1:33437 :::* LISTEN 5298/frmbld
tcp 697 0 ::ffff:127.0.0.1:33437 ::ffff:127.0.0.1:33439 CLOSE_WAIT -
tcp 348 0 ::ffff:127.0.0.1:33437 ::ffff:127.0.0.1:33440 CLOSE_WAIT -
[root@localhost ~]#
The question remains: Where do those port numbers come from?
Regards,
jme -
Serial port configuration on PXI 8185 w/ 8423 card.
I'm trying to configure wire mode for the serial ports on a 8423 RS485 card with the NI-RT.INI file, but it changes the RS232 ports on the controler. The Property node method doesn't work at all. Using LV-RT 7.1 and loading from mac OSX.
I just figured it out. I was trying to set the wire mode on the RS485 to two-wire auto, and the RS232 to RS232-auto. The problem was that I had a 'WIRE_MODE=xxx' in my NI-RT.INI file, this disabled the ability to set the wire modes with the serial property node. In addition, the documentation has changed: The pre-VISA 3 instructions were to let (page 6-5 NI Serial Hardware and Software for Windows User Manual)
RS485 4wire WIRE_MODE=128
RS485 2wire DTR w/echo =129
RS485 2wire DTR cont =130
RS485 2wire auto =131
but the new VISA serial has these as 0,1,2,3 respectively, with 128, 129 and 130 being RS232 wire modes. 131 is undefined now.
So it is all working as of this afternoon. Was obtuse to find these errors though, and neither the NI-RT.INI file
or the new VISA wire mode setting ability are documented correctly anywhere that I could find. Thanks for the offer of help! -
Multiple serial port initialisation problem
Good Morning All
I have attached a vi which is giving me a problem that I can't solve, and would appreciate any help.
The vi is supposed to intialise up to 7 serial ports (only using 5 at the moment), and I'm assuming this is a plausible way to do the initialisation (could be wrong). The serial ports are connected to a pc via a usb hub. The windows XP o/s does recognise the ports according to the device manager.
The problem is that when the vi is run the following error is reported as shown in the attached word document.
I have compared the port settings in the device manager properties for each port to the vi settings and they match. What more can I do?
If somebody has a setup with mutliple serial ports could they try the vi and see if it works for them?
Thanks and best regards
Ray
Solved!
Go to Solution.
Attachments:
ax500 serial port init.vi 37 KB
init error.docx 518 KBIt has nothing to do with multiple serial ports. It has to do with an invalid setting you are trying to use to configure any one of the serial ports.
Look at the information in the error message. Argument 4 of the property node in Configure Serial Port VI is the Stop Bits setting. I see a coercion dot going into that VI, so that tells me the datatype you are wiring in doesn't quite match.
You have an array of I32 values, and your values consist of 1's. Disconnect that array and right click on the terminal of Configure Serial Port VI and pick Create Constant. You'll see you get a ring data type. It is a U16. But if you look at the items in there, you'll see that stop bits 1.0 has a value of 10. 1.5 has a value of 15, 2.0 has a value of 20. So the value of 1 has no meaning to that property node and you get an error. You should be wiring in a value of 10.
Delete that array. Create an array of the ring constants. Turn it into a control, and choose the correct ring value for each element of your array.
You have several other coercion dots. They may not be causing you problems, but I would consider disconnecting them, creating a constant of the correct datatype, and using that in the array you wire to the Configure subVI.
I modified your VI and attached it. See if it works for you.
Attachments:
ax500SerialPortInitMOD.vi 37 KB -
Configuración del puerto serie (serial port configuration)
Hello I want to configure my serial port using Labview to achive this settings
IRP_MJ_CREATE Serial0 SUCCESS Options: Open
IOCTL_SERIAL_SET_QUEUE_SIZE Serial0 SUCCESS InSize: 2048 OutSize: 500
IOCTL_SERIAL_SET_TIMEOUTS Serial0 SUCCESS RI:-1 RM:0 RC:0 WM:0 WC:0
IOCTL_SERIAL_GET_BAUD_RATE Serial0 SUCCESS
IOCTL_SERIAL_GET_LINE_CONTROL Serial0 SUCCESS
IOCTL_SERIAL_GET_CHARS Serial0 SUCCESS
IOCTL_SERIAL_GET_HANDFLOW Serial0 SUCCESS
IOCTL_SERIAL_GET_BAUD_RATE Serial0 SUCCESS
IOCTL_SERIAL_GET_LINE_CONTROL Serial0 SUCCESS
IOCTL_SERIAL_GET_CHARS Serial0 SUCCESS
IOCTL_SERIAL_GET_HANDFLOW Serial0 SUCCESS
IOCTL_SERIAL_SET_BAUD_RATE Serial0 SUCCESS Rate: 19200
IOCTL_SERIAL_SET_RTS Serial0 SUCCESS
IOCTL_SERIAL_SET_DTR Serial0 SUCCESS
IOCTL_SERIAL_SET_LINE_CONTROL Serial0 SUCCESS StopBits: 1 Parity: NONE WordLength: 8
IOCTL_SERIAL_SET_CHAR Serial0 SUCCESS EOF:0 ERR:0 BRK:0 EVT:d XON:11 XOFF:13
IOCTL_SERIAL_SET_HANDFLOW Serial0 SUCCESS Shake:1 Replace:80000040 XonLimit:2048 XoffLimit:512
IOCTL_SERIAL_GET_COMMSTATUS Serial0 SUCCESS
IOCTL_SERIAL_PURGE Serial0 SUCCESS Purge: TXABORT RXABORT TXCLEAR RXCLEAR
IOCTL_SERIAL_SET_WAIT_MASK Serial0 SUCCESS Mask: RXFLAG ERR
IOCTL_SERIAL_WAIT_ON_MASK Serial0 SUCCESS
IOCTL_SERIAL_SET_WAIT_MASK Serial0 SUCCESS Mask:
Thank you in advance,
RegardsHello I want to configure my serial port using Labview to achive this settings
IRP_MJ_CREATE Serial0 SUCCESS Options: Open
IOCTL_SERIAL_SET_QUEUE_SIZE Serial0 SUCCESS InSize: 2048 OutSize: 500
IOCTL_SERIAL_SET_TIMEOUTS Serial0 SUCCESS RI:-1 RM:0 RC:0 WM:0 WC:0
IOCTL_SERIAL_GET_BAUD_RATE Serial0 SUCCESS
IOCTL_SERIAL_GET_LINE_CONTROL Serial0 SUCCESS
IOCTL_SERIAL_GET_CHARS Serial0 SUCCESS
IOCTL_SERIAL_GET_HANDFLOW Serial0 SUCCESS
IOCTL_SERIAL_GET_BAUD_RATE Serial0 SUCCESS
IOCTL_SERIAL_GET_LINE_CONTROL Serial0 SUCCESS
IOCTL_SERIAL_GET_CHARS Serial0 SUCCESS
IOCTL_SERIAL_GET_HANDFLOW Serial0 SUCCESS
IOCTL_SERIAL_SET_BAUD_RATE Serial0 SUCCESS Rate: 19200
IOCTL_SERIAL_SET_RTS Serial0 SUCCESS
IOCTL_SERIAL_SET_DTR Serial0 SUCCESS
IOCTL_SERIAL_SET_LINE_CONTROL Serial0 SUCCESS StopBits: 1 Parity: NONE WordLength: 8
IOCTL_SERIAL_SET_CHAR Serial0 SUCCESS EOF:0 ERR:0 BRK:0 EVT:d XON:11 XOFF:13
IOCTL_SERIAL_SET_HANDFLOW Serial0 SUCCESS Shake:1 Replace:80000040 XonLimit:2048 XoffLimit:512
IOCTL_SERIAL_GET_COMMSTATUS Serial0 SUCCESS
IOCTL_SERIAL_PURGE Serial0 SUCCESS Purge: TXABORT RXABORT TXCLEAR RXCLEAR
IOCTL_SERIAL_SET_WAIT_MASK Serial0 SUCCESS Mask: RXFLAG ERR
IOCTL_SERIAL_WAIT_ON_MASK Serial0 SUCCESS
IOCTL_SERIAL_SET_WAIT_MASK Serial0 SUCCESS Mask:
Thank you in advance,
Regards -
Hello,
is there a way to configure a serial port only to initialize, without using any graphical tools(like smc, admintool, etc)?Do you mind to elaborate more this question? All serial ports are initialized by default.
You can use stty to check the port configuration (the -a >< is a bug in the Sun forum. Use -a < instead):
[SunOS 5.9/bash] root@wgtsinf01:/opt/sfw
# stty </dev/ttya
speed 9600 baud; -parity hupcl
rows = 0; columns = 0; ypixels = 0; xpixels = 0;
swtch = <undef>;
brkint -inpck -istrip icrnl -ixany imaxbel onlcr tab3
echo echoe echok echoctl echoke iexten
[SunOS 5.9/bash] root@wgtsinf01:/opt/sfw
# stty -a </dev/ttyb
speed 9600 baud;
rows = 0; columns = 0; ypixels = 0; xpixels = 0;
csdata ?
eucw 1:0:0:0, scrw 1:0:0:0
intr = ^c; quit = ^\; erase = ^?; kill = ^u;
eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
-parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
ixon -ixany -ixoff imaxbel
isig icanon -xcase echo echoe echok -echonl -noflsh
-tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3Cheers,
Andreas -
After updating Safari, my "port configuration" does not recognize the built-in ethernet option and I can't connect to the internet using Safari. Everything else works properly - Any suggestions?
Hi Jim, and a warm welcome to the forums!
Are you saying that it doesn't show at all in Network>Show:>Network Port Configurations?
If you haven't yet try this...
Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, when complete reboot. -
Serial port communication problems
Hello. I am trying to control a MKS Instruments 651C Pressure Controller via RS-232. Right now, I am just trying to establish basic communication with the device over the serial port. I can connect to the device with windows hyperterminal using the following settings:
Bits per second: 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow control: None
Once I connect, I go to File-->Properties, Settings tab,and click on ASCII Settings button. I must check the following boxes (not checked by default) for any communication to occur:
Send line ends with line feeds
Echo typed characters locally
Append line feeds to incoming line ends
Force incoming data to 7-bit ASCII
Once I have all that set, I can communicate with my device via hyperterminal. What I would like to do now is to use LabVIEW to control the device, so I need to be able to send/receive data over the RS-232 connection via LabVIEW. I have been using the Basic Serial Write and Read vi, but I am not getting any response from my device. Looking at the block diagram for the basic read/write, I saw that Enable Termination Char was hardwired to false, so I changed it to a control and set it to true. I also changed Termination Char to a control and set it to 0xD for CR. I still cannot get a response from the device.
I'm guessing that I am still not setting everything for the serial port setup correctly. Can anyone give me some suggestions on what else to modify to match my hyperterminal settings? Thanks!
Solved!
Go to Solution.Have you tried running NI-Spy to see what is actually happening on the serial port? This may help you narrow down what is happening. I also wonder if you are having an issue since you are using 8-bit ASCII when you open the port but in hyperterminal you are telling it to use 7-bit ASCII to read the data.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
HP deskjet 710c and windows 7 64 bit serial port configuration
Hi computer people,
Please help, I can't get my Hp deskjet 710c to print with Windows 7 professional 64 bit computer via non usb i.e I am using the serial port connections via computer and printer. Any solutions as to why it won't print ?Hello PeterB91,
Welcome to the HP Forums, I hope you enjoy your experience!
I have read your post on how you are not able to print on your Windows 7 computer, and I would be happy to assist you in this matter!
Unfortunately, the only way to update the drivers for your printer on your computer is to connect the two devices with a USB cable. This will allow the installation of Plug-and-Play drivers. According to the Product Specifications for your printer, the only available connection-type is for the IEEE cable.
As a workaround, you may be able to use a USB to IEEE adapter, but this option is not guaranteed.
I hope this helps!
Best Regards
MechPilot
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping! -
Screensaver configuration problem with lost iPhoto library
Hi, I justed switched my macbook and I used to have another iPhoto library in an external HD that is now gone. I cannot configure the screensaver, I think it searches for my lost iPhoto library and cannot select my current pictures. Can someone help me with this problem? Thanks.
If the rebuild doesn't help try Fix 101: make a temporary, backup copy of the library if you don't already have a backup copy and try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home()/Library/ Preferences folder.
2 - delete iPhoto's cache file, Cache.db, that is located in your
User/Home()/Library/Caches/com.apple.iPhoto folder.
3 - launch iPhoto and try again.
NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto. You'll also have to reset the iPhoto's various preferences.
OT -
AS5300 - Voice Port Configuration Problem
Hi guys,
I'm trying to configure a E1 PRI 8 Port Module on a AS5300 (IOS: 12.3(18)) but after I configured the controller, I can't find the voice ports. if I do a sh voice port summ there are no voice ports listed.
The controller is showing up in sh controllers e1 0.
Also under the dial-peer there is no port command..
Anybody has had this issue before?
Thanks.
Best regardshere are the outputs:
Router#sh vers
Cisco Internetwork Operating System Software
IOS (tm) 5300 Software (C5300-JS-M), Version 12.3(18), RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by cisco Systems, Inc.
Compiled Wed 15-Mar-06 16:39 by dchih
Image text-base: 0x60008AEC, data-base: 0x618EC000
ROM: System Bootstrap, Version 12.0(2)XD1, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
BOOTLDR: 5300 Software (C5300-BOOT-M), Version 12.1(17), RELEASE SOFTWARE (fc1)
Router uptime is 3 hours, 53 minutes
System returned to ROM by reload at 16:26:08 gmt Sun Jan 2 2000
System image file is "flash:c5300-js-mz.123-18.bin"
cisco AS5300 (R4K) processor (revision A.32) with 131072K/16384K bytes of memory.
Processor board ID 14898234
R4700 CPU at 150MHz, Implementation 33, Rev 1.0, 512KB L2 Cache
Channelized E1, Version 1.0.
Bridging software.
X.25 software, Version 3.0.0.
SuperLAT software (copyright 1990 by Meridian Technology Corp).
TN3270 Emulation software.
Primary Rate ISDN software, Version 1.1.
Backplane revision 2
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x30,
Board Hardware Version 1.80, Item Number 800-2544-03,
Board Revision A0, Serial Number 14898234,
PLD/ISP Version 0.0, Manufacture Date 8-Jul-1999.
1 Ethernet/IEEE 802.3 interface(s)
1 FastEthernet/IEEE 802.3 interface(s)
35 Serial network interface(s)
240 terminal line(s)
8 Channelized E1/PRI port(s)
128K bytes of non-volatile configuration memory.
16384K bytes of processor board System flash (Read/Write)
8192K bytes of processor board Boot flash (Read/Write)
Configuration register is 0x2102
Router#sh run
Building configuration...
Current configuration : 2057 bytes
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname Router
boot-start-marker
boot-end-marker
enable password cisco
spe 1/0 2/9
firmware location system:/ucode/mica_port_firmware
resource-pool disable
clock timezone gmt 2
no aaa new-model
ip subnet-zero
ip cef
isdn switch-type primary-net5
isdn voice-call-failure 0
voice call send-alert
voice rtp send-recv
voice service pots
voice service voip
sip
voice class codec 1
voice class codec 100
controller E1 0
framing NO-CRC4
pri-group timeslots 1-31
controller E1 1
clock source line secondary 1
controller E1 2
clock source line secondary 2
controller E1 3
clock source line secondary 3
controller E1 4
clock source line secondary 4
controller E1 5
clock source line secondary 5
controller E1 6
clock source line secondary 6
controller E1 7
clock source line secondary 7
interface Ethernet0
no ip address
interface Serial0
no ip address
clock rate 2015232
no fair-queue
interface Serial1
no ip address
clock rate 2015232
no fair-queue
interface Serial2
no ip address
clock rate 2015232
no fair-queue
interface Serial3
no ip address
shutdown
clock rate 2015232
no fair-queue
interface Serial0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice modem
no cdp enable
interface FastEthernet0
ip address 1.1.1.1 255.255.255.252
duplex auto
speed auto
ip classless
ip route 0.0.0.0 0.0.0.0 1.1.1.2
no ip http server
dial-peer voice 100 voip
destination-pattern .T
session protocol sipv2
session target ipv4:192.168.1.1
session transport udp
dtmf-relay rtp-nte
dial-peer voice 10 pots
destination-pattern .T
direct-inward-dial
sip-ua
no remote-party-id
sip-server ipv4:192.168.1.1
line con 0
line 1 240
line aux 0
line vty 0 4
transport input lat pad mop telnet rlogin udptn
end
Router#
Router#sh diag
Motherboard Info:
Backplane revision 2
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x30,
Board Hardware Version 1.80, Item Number 800-2544-03,
Board Revision A0, Serial Number 14898234,
PLD/ISP Version 0.0, Manufacture Date 8-Jul-1999.
EEPROM format version 0
EEPROM contents (hex):
0x00: 00 01 01 30 01 50 03 20 00 09 F0 03 41 00 31 34
0x10: 38 39 38 32 33 34 00 00 00 00 00 00 00 00 13 63
0x20: 07 08 00 00 FF FF FF FF FF FF FF FF FF FF FF FF
0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FRU NUMBER : AS5300
Slot 0:
Hardware is Octal E1 PRI, 8 ports
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x49,
Board Hardware Version 1.0, Item Number 800-3883-01,
Board Revision A0, Serial Number 14896274,
PLD/ISP Version 0.1, Manufacture Date 29-Jun-1999.
EEPROM format version 0
EEPROM contents (hex):
0x00: 00 01 01 49 01 00 03 20 00 0F 2B 01 41 00 31 34
0x10: 38 39 36 32 37 34 00 00 00 00 00 00 00 00 13 63
0x20: 06 1D 00 01 FF FF FF FF FF FF FF FF FF FF FF FF
0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FRU NUMBER : AS53-8CE1+=
Slot 1:
Hardware is Duo Density Modems
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x4C,
Board Hardware Version 1.0, Item Number 800-3680-01,
Board Revision A0, Serial Number 14049055,
PLD/ISP Version 2.2, Manufacture Date 7-Jul-1999.
EEPROM format version 0
EEPROM contents (hex):
0x00: 00 01 01 4C 01 00 03 20 00 0E 60 01 41 00 31 34
0x10: 30 34 39 30 35 35 00 00 00 00 00 00 00 00 13 63
0x20: 07 07 02 02 FF FF FF FF FF FF FF FF FF FF FF FF
0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FRU NUMBER : AS53-120-CC2=
Slot 2:
Hardware is Duo Density Modems
Manufacture Cookie Info:
EEPROM Type 0x0001, EEPROM Version 0x01, Board ID 0x4C,
Board Hardware Version 1.0, Item Number 800-3680-01,
Board Revision A0, Serial Number 14055218,
PLD/ISP Version 2.2, Manufacture Date 7-Jul-1999.
EEPROM format version 0
EEPROM contents (hex):
0x00: 00 01 01 4C 01 00 03 20 00 0E 60 01 41 00 31 34
0x10: 30 35 35 32 31 38 00 00 00 00 00 00 00 00 13 63
0x20: 07 07 02 02 FF FF FF FF FF FF FF FF FF FF FF FF
0x30: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x40: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x50: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x60: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
0x70: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FRU NUMBER : AS53-120-CC2=
Router# -
Nexus 7009 N7K-M2206FQ-23L 40GigE Port Configuration Problem
Hi,
I am experiencing a strange behaviour in configuring a 40GigE Link between two Nexus 7009 Eth6/1 and Eth9/2; both sides have a
N7K-M2206FQ-23L Module; I am using a QSFP-40GE-LR4 Optic on both sides. The Operting system is 6.2(6) on both sides.
After configuring the Interfaces as a Layer3 Interface and a no shutdown I get the message
Ethernet6/1 is down (Administratively down)
admin state is down, Dedicated Interface
So what is going wrong ?
Thanks in advance
Manfred
Ethernet6/1
transceiver is present
type is QSFP-40GE-LR4
name is CISCO
part number is FTL4C1QE1C-C1
revision is B
serial number is FNS18410KXL
nominal bitrate is 10300 MBit/sec per channel
Link length supported for 9/125um fiber is 10 km
cisco id is --
cisco extended id number is 176
cisco part number is 10-2848-01
cisco product id is QSFP-40GE-LR4
cisco vendor id is V01
Ethernet9/2
transceiver is present
type is QSFP-40GE-LR4
name is CISCO
part number is FTL4C1QE1C-C1
revision is B
serial number is FNS1834014K
nominal bitrate is 10300 MBit/sec per channel
Link length supported for 9/125um fiber is 10 km
cisco id is --
cisco extended id number is 176Hi,
After connecting the cable to both ports, do you see green lights on the ports?
Do the interfaces go to up and up mode at all?
HTH -
Communication cldc serial port with problems?
I have a problem using CLDC serial communications:
I need a connection using Stopbit 2, databits 7, parity even and baudrate 4800.
I use the line code:
serialport.open("0;baudrate=4800;bitsperchar=7;stopbits=2;parity=even",1,true);
or the sintax :
soc_ = (StreamConnection)Connector.open("comm:0;baudrate=4800;bitsperchar=7;stopbits=2;parity=even");
but the data arrive in palm of strange way. I send the bit 67 and receive in palm the bits 4, 12, 20 for example.
helpme
thank you[superfudido],
The MIDP for Palm OS implementation currently does not
support the comm protocol. Although CLDC supports the
use of the serial comm protocol, what type of
connections is determined by the profile, in the case
of the Palm device, currently the only available
profile is MIDP for Palm. The MIDP specification
states that all MIDP compliant implementations must
provide HTTP connections, all other connection types
are optional.
See this URL for the frequently asked questions for
the MIDP for Palm technology:
http://java.sun.com/products/midp4palm/faq.html#Q5
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/
However is possible to create conection for serial using databits 8, parity none, stopbit 1 without problems. Then exist comm protocol in CLDC, but no run with databits 7, parity even, stopbit 2. This is a Bug? -
The "VISA Configure Serial Port" VI will only run at 9600 Baud
I have written a Serial Port monitor "RS232 RW.vi" that works for the most part. The problem is that it will not respond to alternate port configuration settings.... For instance: the default RS232 Serial port configuration is:
(COM1,9600 baud,8 data bits,1 Stop bit, None no parity)
As a test, I am using a Null Modem Cable to connect From my LabView Com1 port to another PC running RealTerm Serial Port Monitor.. Using my newly designed "RS232 RW.vi" With port settings of (COM1,9600 baud,8 data bits,1 Stop bit, None no parity), I can send and receive data back and forth all day long no problems....
However, if I configure the "RS232 RW.vi" port to any other configuration, such as (COM1,2400 baud ,7 data bits,1 stop bit, Odd parity).. It will not take the expected chances and continues to operate @ 9600 baud etc.
I then changed the "RS232 RW.vi" default settings to (2400,7,1,Odd)
it still refuses to deviate from (COM1, 9600,8,1,None...)
I also went into the Win XP Device Manager on the LabView system and manually configured Com1 to 2400,7,1,Odd
and still,.... the "RS232 RW.vi" will only operate @ 9600,8,1,None
Can anyone else test drive my VI and see if they have the same problem of not being able to see new changes in the Port configuration settings ..other than (COM1, 9600,8,1,None...).... ?
FYI.. Unfortunately my LabView is running on Version 6.0 so you may need to up-convert the attached vi
Solved!
Go to Solution.
Attachments:
RS232 RW.vi 102 KBInstead of just appreciating the comments, you need to implement them.
Having the VISA close inside the loop is definitely the problem. And Crossrulz is 100% correct about the problem being that the serial port gets reset to the default baud rate after closing the port. Here is the proof.
Note that while you may have set the port settings manually in device manager, those settings are revised by the VISA driver. If you look in Measurement and Automation Explorer under Devices and Interfaces >> Serial and Parallel, you'll see the default settings that the VISA driver uses. If you change the setting there, your program will work the way you want. But that is not the correct fix. The correct fix is to get the VISA close out of the while loop.
The port settings are established in this order.
1. By the Windows device drivers.
2. By the VISA driver as established in MAX. Since you are useing VISA, these settings will automatically override #1.
3. By the port settings you set programmatically in your LabVIEW program.
Attachments:
Example_VI.png 18 KB -
Hello All,
I am developing Teststand sequences which run Labview code. I use 1 labview vi to configure and drive the serial port, the first call configures the serial port. The second call writes a message and reads the response, the last call releases the resource. When running the call write&read I intermittently receive the error shown in the attached jpg, this causes my whole sequence to lockup till I return to restart the test. I need to run this repeatedly overnight so its a problem. I have a feeling this isnt so much a serial port overrun problem as a hardware clash ( i also configure and run a camera ).
I have spotted a number of posts a on this same topic but I havent yet found a soultion only advice, which I have already tried.
Help greatly appreciated
Regards Chris
Attachments:
Serial Port Error.jpg 63 KBAre you familiar with handshaking? There were several posts on this subject recently. The end device is sending data faster than your computer and Labview program can handle. You need to implement handshaking. There are two types of handshaking, software and hardware:
Software, also called XON/XOFF. With this setup, when the computer serial port incoming buffer gets nearly full, it automatically sends an XOFF command (don't worry about what it is since it is automatic). The XOFF command tells the endpoint device to stop sending data. When the buffer gets near empty, the computer sends an XON command. The endpoint device then starts sending data again. For this protocol, the endpoint device must be able to support this, and must be configured to use this type of handshaking. You would have to read the manual to find out how to set it up. For the computer end, you can set it up with an option for the configure serial port function on the input labeled "Flow Control". Right click on this terminal and select Create - Constant. A text ring will be created. Select XON/XOFF in the text ring.
Hardware, also called RTS/CTS. Same principle in that the computer signals the endpoint when to stop sending data and when to start again. However, instead of sending a command, the computer drops the CTS line (Clear To Send). Actually, the endpoint device raises the RTS (Request To Send) when it wants to send data, and the computer responds with raising CTS if it is ready to receive data. When the buffers get full, the computer drops CTS which tells the endpoint to stop sending data. When the computer is ready to start receiving again, it raises CTS. Again, both sides must be configured for this. The text ring has an RTS/CTS selection.
You will have to read the manual on your endpoint device to see what it supports and how to configure it. Warning: If sending binary data, DO NOT use XON/XOFF. The binary data may just happen to form a pattern that looks like XOFF, and everything will lock up because XON will never be sent. So if binary data is being transferred, use RTS/CTS. If normal ASCII characters are being sent, you can use either protocol.
- tbob
Inventor of the WORM Global
Maybe you are looking for
-
Adobe PDF iFilter 9 for 64-bit platforms does not index my PDF files in SQL server database
hi all I need your help i have this asp.net site which works with sql server it searches a specific word in the database with full text search in my database i have a column of type image that holds a PDF file i want my SP to search for given word in
-
Can't access some secure sites through proxy?
can't access some secure sites through proxy server on osx it just keeps going local authority couldn't be contacted, i had the same problem with parental controls, but now that is off and its still doing it, is there a setting or something i need to
-
Problem with indexes, really stuck! Help!!
Hi, I am having a slight problem and don't know how to fix it. I have a string with a list of numbers, eg strA = "910111213...." and so on up to 22 I have a method that checks whether there is a word between the numbers and returns a string with the
-
Focus on TextInput hides windows 7 language bar when in Chrome (latest version by the time of the writting) - very odd behavior, if the user clicks away from the flex app then the language bar reappears but even if you change the language if you focu
-
I want to upgrade to snow leopard from 10.5.8. Im hesitant to proceed because I'm running iPhoto 7 and word 2004. I want to be sure these programs will still run and I won't lose my photos or the events I have ordered them by. Should i make a partiti