The purpose of this invention is to provide a kind of by single chip microcomputer software program that form, that write particular design, the chip that forms a digital coding that is used for the special use of railway wireless shunting handset, subcarrier primary modulation, the hand-held set function is controlled, in order to replace the hand-held set coding circuit in the former DX-862 system, also can be used for other field of remote control.
According to railway plane radio shunting handset coding of the present invention, modulation, function control chip, can adopt the single chip microcomputer of series such as PIC, MSC-51, AT89, write custom-designed software program.This software can be realized following function:
1, produces the multiple digital baseband signal be used for remote control or shunting service, output digital pulse signal and with the baseband signal after the modulation of different frequency value.
2, produce the subcarrier frequency signal that is used for the modulation of digit pulse baseband signal, and can preset multiple frequency values.
3, can preset the signal mode that is respectively applied for shunter's shunting service and the signal mode of the person's of connection shunting service.
4, can produce different audio frequency corresponding and different modulating width than Tip Sound signal with controlling button.
5, can remember the signal kinds that button sends, thereby Control Circulation detects automatically.
6, can control the high-frequency emission and the reception conversion of hand-held set.
7, the cell voltage of monitoring hand-held set, the low-voltage memory is reported to the police automatically.
According to railway plane radio shunting handset coding of the present invention, modulation, function control chip, be written in the single chip microcomputer software block diagram as shown in Figure 1.This software is realized function control according to following step:
(1) reads in the value of preset condition input port, promptly the subcarrier frequency value of baseband signal modulation is selected, and selected shunter or the different signal mode of connection person's operation, remember after reading in.
(2) according to the remember condition that reads in, the delay time of given wherein a kind of subcarrier frequency value.
(3) enter cyclic program,,, just changed for (4) step over to,, then turned to for (8) step if select shunter's mode of operation if select to connect employee's operation mode according to remember condition.
(4) the button input port of reading to stop in emergency if any input, just turned to for (5) step, if not input just turned to for (6) step.
(5) enter connection person's emergency mobile forces stop signal handling procedure, according to given subcarrier frequency delay time, time relationship control modulation signal delivery outlet between baseband signal and the subcarrier frequency, baseband signal after the output modulation, by other two delivery outlet output baseband signals and the prompt tone signal corresponding, turned to for (14) step then simultaneously with this button.
(6) the not input of button input port of stopping in emergency checks whether the ring off signal input port has input, has then to enter for (7) step, does not just enter for (15) step.
(7) enter connection person's ring off signal handling procedure, according to given subcarrier frequency delay time, time relationship control modulation signal delivery outlet between baseband signal and the subcarrier frequency, baseband signal after the output modulation, simultaneously by other two delivery outlets output baseband signals and the prompt tone signal corresponding, entered for (14) step after finishing the control of three delivery outlets with this button.
If select shunter's signal mode, just check that red button input port has or not input in (8) (3) steps, have input just to enter for (9) step, input did not then turn to for (10) step.
(9) enter the given signal handler of the red button of shunter, according to the given pairing delay time of subcarrier frequency value, three delivery outlets of time relationship control between baseband signal and the subcarrier frequency, export the baseband signal corresponding respectively with red button, baseband signal after the modulation, Tip Sound signal, remove the signal kinds of memory last time, red signal had been sent out in memory, entered for (14) step after finishing this function.
(10) check that yellow signal button input port has or not input,, just entered for (11) step, if not input just changed for (12) step over to if input is arranged.
(11) enter the given signal handler of the yellow signal button of shunter, according to the given pairing delay time of subcarrier frequency value, time relationship between baseband signal and the subcarrier frequency, control 3 delivery outlets, output and the corresponding baseband signal of yellow signal button respectively, the baseband signal after the modulation, Tip Sound signal are removed the signal kinds of memory last time, the yellow signal sent out of memory entered for (14) step after finishing function.
(12) check green signal button input port, have input just to enter for (13) step, input did not then turn to for (15) step.
(13) enter the green signal handler of shunter, export baseband signal, Tip Sound signal after the baseband signal corresponding with green button, the modulation, remove the signal kinds of memory last time, the green signal that memory had been sent out entered for (14) step after finishing controlled function.
(14) by (5), (7), (9), (11), (13) entered for (14) step all is that button has input signal, promptly this function is 2 delivery outlets of control, make hand-held set turn to emission state by accepting state, control the audio amplifier circuit of hand-held set simultaneously, make it the amplifying key-press Tip Sound, finish entering for (20) step after the function.
(15) by (6), to go into for (15) step all be not have the button input in (12) stepping, and the control delivery outlet makes the high frequency channel of hand-held set transfer accepting state to by emission, enters for (16) step then.
(16) check whether the input port has the state input of low-voltage, if having, just enters for (17) step, if just do not turn to (18) step.
(17) the low state memorization of voltage is arranged, just control the Tip Sound delivery outlet, export a Tip Sound frequency signal at set intervals automatically, make loudspeaker send the low pressure alarming signal, entered for (18) step then.
(18) check which kind of signal memory has sent out,, just entered for (19) step,, then entered for (20) step if memory sends out is red signal if sent out yellow or green train signal.
What (19) the inspection memory was sent is to enter for (19) step behind Huang, the green signal, automatically detect the pulse control program, produce automatic detection signal, the output of control delivery outlet by this program, whether the delivery outlet of detection chip and high-frequency emission channel can normally be exported, and enter (20) step after the end.
(20) no matter have or not push button signalling, all entered for (20) step at last, input port to the monitoring cell voltage is checked, if any the voltage low signal input, just it is remembered, for (17) step handle, produce then,, then directly produce as the input of no-voltage low signal, turn back to above-mentioned (3) step, begin new circulation.
Employing writes the formed railway plane radio shunting dispatching patcher of chip that the single chip microcomputer of above-mentioned software program is formed, the digital pulse coding that has not only kept original system, the good anti-interference that subcarrier primary modulation mode is had, digital signal address code position cooperates the sub-carrier modulation of different frequency, allow a plurality of group shared high frequency channels and not disturbing mutually of shunting, thereby the advantages such as utilance of channel have been improved, and owing to replaced the repertoire of former hand-held set coded modulation circuit with a chip, no longer use integrated circuit and resolution element, realized the miniaturization of hand-held set, better reliability is arranged, stability, failure rate greatly reduces.Proving effect is good as a result in actual use.