Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

wen i write into a serial port and read the port it returns no respnse?

i wrote at commands to a modem connected to rs232 but wen i read the port i just get an empty string. please help coz i dont know wat is wrong
0 Kudos
Message 1 of 15
(4,814 Views)

What commands are you sending? Do you have the correct cable and are the com settings correct?

 

Before writing any code, check the above and use a program such as Hyperterminal to verify.

0 Kudos
Message 2 of 15
(4,798 Views)
hi. thanx i tried wat u said. There was some improvement. But now when i wirte the AT command using VISA write on the serial port and then use VISA read, it just reads the AT command back. Is there anything specific i need to do
0 Kudos
Message 3 of 15
(4,765 Views)

I suppose the same issue has been discussed in this and this forum.

Hope this helps!

Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 4 of 15
(4,749 Views)
hi dennis. i tried wat u sd. im using a property node now to read bytes at serial port. but after i read. i get the same AT command back along with an error saying that more bytes cud be present at the port. if i do not use the property node it gives a timeout error. please help
0 Kudos
Message 5 of 15
(4,630 Views)

Hi

Getting the same command back is not unusual when the modem is in echoing mode.

The warning is simply that your read went ok but that the system may have sent extra data later, what most of the time is not so it is just a warning

greetings from the Netherlands
0 Kudos
Message 6 of 15
(4,610 Views)

hi. but im still not getn ne response from th modem. could u pls chck my vi to c i there r any errors in it or ne changes i can make

 

 

 

thanks

0 Kudos
Message 7 of 15
(4,573 Views)
There's really nothing to check. You copied the basic example. I would suggest you place the VISA Configure Serial Port outside the loop. What is critical is the string that you are sending and you have not provided that. Enter the string, right click and select "Make Current Value Default", save the VI, and post that.
0 Kudos
Message 8 of 15
(4,564 Views)

 hi every1

i wrote int he gsm modem. i get the AT command back wen i read(which is normal)but i do not get an ok or error (which i shld b gettn)do i need to use hand shaking with the modem? i have tried everything but the modem doesnt respond to any AT command 

pls help

0 Kudos
Message 9 of 15
(4,450 Views)
A month ago, I asked you to do a couple of very basic things in order to help understand what might be wrong. It does not seem like you have done either test the connection with  program like Hyperterminal or provide the actual strings you are sending. Trying 'everything' is meaningless unless you provide details on what 'everything' actually is.
0 Kudos
Message 10 of 15
(4,427 Views)