"Soft break"?
"Soft break"?
"Soft break"?
"Soft break"?
"Soft break"?
"Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"?
"Soft break"? "Soft break"?
"Soft break"?
Go Back  Xtreme Visual Basic Talk > > > "Soft break"?


Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2006, 07:47 PM
irb4 irb4 is offline
Regular
 
Join Date: Sep 2006
Posts: 75
Thumbs up "Soft break"?


So I am using vb to send hex commands to control this radio modem through RS232.
Something like this:
MSComm1.Output = Chr$(&HF8) & Chr$(&H0) & Chr$(&H1) & Chr$(&H96) & Chr$(&H0) & Chr$(&H0)

Now the manual of the radio modem ask me to send "soft break" ....now what's that suppose to mean? How to send it to the serial comm using vb?
Reply With Quote
  #2  
Old 10-13-2006, 08:07 PM
webbone's Avatar
webbone webbone is offline
Hydrogen Powered

Administrator
* Expert *
 
Join Date: Jul 2003
Location: Sacramento, CA
Posts: 6,090
Default

I haven't heard of a "soft" BREAK, but in general a BREAK is a continuous 0 for longer than a normal serial character. Some UARTs have a hardware bit that can assert break automatically, but there isn't a guarantee the one you are talking to will have this capability. One method of accomplishing this is to set the baud rate to half the normal rate (or less) and then send Chr$(0). The down side to this is if you need to be able to receive immediately after sending this quasi-break, you may not be able to get the baud rate set back to normal and get all the characters that are returned after the break disengages.

Is there any more information in the data sheet for the radio modem to determine what they are referring to specifically? Also, once you send this "soft break" do they define some time delay before communications resume, etc?
__________________
"With the appearance of the AddressOf operator, an entire industry has developed among authors illustrating how to do previously impossible tasks using Visual Basic. Another industry is rapidly developing among consultants helping users who have gotten into trouble attempting these tasks." -Dan Appleman
Reply With Quote
  #3  
Old 10-13-2006, 08:42 PM
irb4 irb4 is offline
Regular
 
Join Date: Sep 2006
Posts: 75
Smile

Quote:
Originally Posted by webbone
I haven't heard of a "soft" BREAK, but in general a BREAK is a continuous 0 for longer than a normal serial character. Some UARTs have a hardware bit that can assert break automatically, but there isn't a guarantee the one you are talking to will have this capability. One method of accomplishing this is to set the baud rate to half the normal rate (or less) and then send Chr$(0). The down side to this is if you need to be able to receive immediately after sending this quasi-break, you may not be able to get the baud rate set back to normal and get all the characters that are returned after the break disengages.

Is there any more information in the data sheet for the radio modem to determine what they are referring to specifically? Also, once you send this "soft break" do they define some time delay before communications resume, etc?
From the Pacific Crest PDL manual:

"There are 4 ways that the PCC modem can be put into Packet/Command Mode:
(1) At power-up: During the first 0.5 sec that the PCC modem is powered up, it monitors the RS-232 port for a special command which places it into Command Mode. This method is reserved for PDLCONF and various diagnostic programs.
(2) Programmed for 'Digipeat' or 'Packet' mode: If the modem has already been programmed for either of these 2 modes, then once the PCC modem has completed its power-up sequence, it will remain in Command Mode.
(3) Via an RS-232 (Hard) BREAK condition: If the "BREAK-to-Command"
configuration option has been selected and programmed, then whenever the PCC modem detects the BREAK condition on the RS-232 input line from the DTE, then it will drop into Command Mode until it is reset via one of the RESET commands, or the power is removed.
(4) Via "Soft-BREAK": The "Soft-BREAK" feature allows a means for the user to force the modem into Command Mode regardless of the current DTE-DCE protocol and without having to cycle the modem power.

If the modem detects "silence" from the DTE of longer than 1 second, followed by the exact ASCII character string "+++", followed by another silent period of 1 second, then the modem will drop into command mode. Any valid command may be issued, including the "Warm RESET", thus enabling temporary Channel, Squelch, etc. changes without requiring they first be Programmed (followed by a "Cold" RESET).
The "Soft-BREAK" operates independently of the "BREAK-to-Command" feature."
Reply With Quote
  #4  
Old 10-13-2006, 08:52 PM
irb4 irb4 is offline
Regular
 
Join Date: Sep 2006
Posts: 75
Thumbs up

"The down side to this is if you need to be able to receive immediately after sending this quasi-break"

No, I just want to change the modem from transparent mode (direct data transmitting and receiving, like hyperterminal) to packet mode(hex data with header and check sum).

Actually I tried using Moxa pcomm terminal emulator and click on its break button and send a break command to the modem but didn't work

http://www.premierelect.com/10.cfm?p...a&category=187
Reply With Quote
  #5  
Old 10-13-2006, 10:02 PM
Rockoon's Avatar
Rockoon Rockoon is offline
Joseph Koss

* Guru *
 
Join Date: Aug 2003
Location: Unfashionable End
Posts: 3,615
Default

If you have a dumb terminal, you should be able to quickly type '+++' within it and get it to drop into command mode - this has been a standard in modems since the old 300 BPS accoustic couplers. Once you can do it manualy (proving to yourself that you understand it) it shouldnt be too hard to do it in your own program. Dropping to command mode can cause a lost connection (thats the way it used to be)
Reply With Quote
  #6  
Old 10-13-2006, 11:10 PM
irb4 irb4 is offline
Regular
 
Join Date: Sep 2006
Posts: 75
Thumbs up

Thanks! "+++" and break from PComm emulator works.

Ok, lets me write some vb code to break it....
Reply With Quote
  #7  
Old 10-16-2006, 08:00 AM
irb4 irb4 is offline
Regular
 
Join Date: Sep 2006
Posts: 75
Default

Got it working! Thanks muah muah
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
"Soft break"?
"Soft break"?
"Soft break"? "Soft break"?
"Soft break"?
"Soft break"?
"Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"? "Soft break"?
"Soft break"?
"Soft break"?
 
"Soft break"?
"Soft break"?
 
-->