[go: up one dir, main page]

CN102673326B - One way communication tire pressure monitoring system - Google Patents

One way communication tire pressure monitoring system Download PDF

Info

Publication number
CN102673326B
CN102673326B CN201110066744.XA CN201110066744A CN102673326B CN 102673326 B CN102673326 B CN 102673326B CN 201110066744 A CN201110066744 A CN 201110066744A CN 102673326 B CN102673326 B CN 102673326B
Authority
CN
China
Prior art keywords
data
radio frequency
way communication
reception assembly
monitoring system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110066744.XA
Other languages
Chinese (zh)
Other versions
CN102673326A (en
Inventor
孙路
李威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baolong Huofu (Shanghai) Electronics Co., Ltd.
Original Assignee
Baolong Motor Science & Technology Co Ltd Shanghai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baolong Motor Science & Technology Co Ltd Shanghai filed Critical Baolong Motor Science & Technology Co Ltd Shanghai
Priority to CN201110066744.XA priority Critical patent/CN102673326B/en
Publication of CN102673326A publication Critical patent/CN102673326A/en
Application granted granted Critical
Publication of CN102673326B publication Critical patent/CN102673326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuits Of Receivers In General (AREA)

Abstract

The present invention relates to a kind of one way communication tire pressure monitoring system, comprise an electronic control unit, this electronic control unit comprises a microcontroller and a radio frequency reception assembly.This radio frequency reception assembly comprises frequency temporal controller and middle fracture, this frequency temporal controller is in order to produce periodic interruption, work is carried out to wake this radio frequency reception assembly up, this radio frequency reception assembly receive and the radiofrequency signal processed from a projector to obtain rf data, and by the acquisition of fracture in this to this microcontroller notice rf data; If do not receive radiofrequency signal within a schedule time, this radio frequency reception assembly enters readiness for action.

Description

One way communication tire pressure monitoring system
Technical field
The present invention relates to tire pressure monitoring system, especially relate to a kind of tire pressure monitoring system of one-way communication mode.
Background technology
In vehicle electric field, application radio frequency (RF) technology is carried out data transmission and processing and has been widely applied to system for monitoring pressure in tyre (TPMS) product.For level of integrated system improve, reduce the considerations such as small product size, in system RF reception, launch design generally have employed modularized processing.A series of RF chips that current electronics firm releases, for transmitting and receiving rf data, and are applied on automobile electronics.Various RF chip possesses phase-locked, mixing, the function such as baseband filtering and amplification usually, has the Serial output function of demodulating data simultaneously.The state of these chips can configure, and most multipotency provides mode of operation and standby mode two states, the general electric current of mode of operation more than 4mA, the several uA of standby mode.
In the entire vehicle design of automobile requires, there is strict restriction for the current value after vehicle stops working.General ECU is limited in below 1mA, to guarantee the power consumption of automobile storage battery.ECU for TPMS is also like this.For any TPMS product, after vehicle is flame-out, must system stalls be ensured, thus reduce power consumption.Due to the power consumption source that high frequency generator is main, so necessarily require MCU and RF chipset to enter standby mode.In stand-by mode, ECU no longer receives and processing RF data.
On present TPMS product, pattern is divided into one-way communication mode and two-way communication mode.One-way communication mode only allows the transmission from the projector of sensor to the receiver in car, the mutual transmission between both two-way communication mode allows.
One-way communication mode TPMS is current main product.ECU design based on the TPMS of one-way communication mode is all just start working after vehicle ignition.And current national TPMS standard highlights self-inspection and alarm content, and describe test method.In fact national standard content requires the TPMS of a new generation, has following function: flame-out low-power consumption, instant data processing of lighting a fire, enough tenure of use.
Like this, current main flow one-way communication mode TPMS product cannot meet national standard, reason is mainly: the TPMS design of existing one-way communication mode, for meeting the tenure of use of projector, the transmitting cycle of projector can not be too short, and the usual design cycle is greater than 1 minute (substantially exceeding the response time in 10 seconds after Standard vehicle ignition).Be consistent with the transmitting cycle under driving states flaming out and stop, or under driving states just transmitting data.Correspondingly, receiver enters standby and no longer receives processing data after stopping working.
Although some retail TPMS products, can see data for meeting before user requires to drive, design receiver remains mode of operation after vehicle is flame-out.Although this design can meet the requirement of national standard for response fast, this causes electric current to reach more than 10mA, can not meet the limitation requirement of car load factory to electric current.
In Automobile Electronic Industry, also there is another kind of fuel saving design, and become good selection.After flame-out, design main frame MCU periodically enters standby mode, stops high frequency generator work, configuration lower frequency oscillator clocking (it is little that low frequency oscillator produces power consumption), timing wake-up main frame MCU.Then wake RF up by main frame MCU and receive module work, RF signal is received.MCU waits for a period of time, check whether the data-out port of RF reception module has output, if do not had, then control RF receives module and enters readiness for action again, then oneself call instruction also reenters readiness for action, and waits for the arrival next time waking clock up.
Above-mentioned design reduces flame-out rear power consumption to a certain extent, but reduces limitation.And all need MCU and RF to wake up at every turn, MCU wakeup process and wait RF data also need to expend certain hour, moreover whether whole RF module detects has the whole system wakeup time shared by rf data arrival less, thus wake-up period extends with the increase of RF dropout rate comparatively remarkable.After entire system power consumption is mainly reflected in system wake-up process and detection, whether data have the wait deterministic process of output, instead of detection RF transmits.The drawback of this type of design, can cause insensitive.Such as need sequential filming tens frame RF signal, process so that ECU encounters frame data.So largely reduce battery
Period of service, it is also the same for being applied to TPMS product, and projector electric quantity consumption increases or RF acceptance rate reduces and causes ECU to emitter failures erroneous judgement.
Summary of the invention
The invention provides a kind of TPMS of one-way communication mode, after automotive ignition can be made, obtain up-to-date data, meet system low-power consumption requirement simultaneously.
The present invention is that to solve the problems of the technologies described above the technical scheme adopted be a kind of one way communication tire pressure monitoring system, and comprise an electronic control unit, this electronic control unit comprises a microcontroller and a radio frequency reception assembly.This radio frequency reception assembly comprises frequency temporal controller and middle fracture, this frequency temporal controller is in order to produce periodic interruption, work is carried out to wake this radio frequency reception assembly up, this radio frequency reception assembly receive and the radiofrequency signal processed from a projector to obtain rf data, and by the acquisition of fracture in this to this microcontroller notice rf data; If do not receive radiofrequency signal within a schedule time, this radio frequency reception assembly enters readiness for action.
In one embodiment of this invention, this radio frequency reception assembly also comprises a radio freqneucy oscillator, and this frequency temporal controller wakes this radio frequency reception assembly up by starting this radio freqneucy oscillator.
In one embodiment of this invention, this radio frequency reception assembly also comprises a configuration register, and this configuration register is in order to configure interrupt cycle and this schedule time of frequency temporal controller.
In one embodiment of this invention, this radio frequency reception assembly also comprises a configuration register, in order to configure one with reference to rf data, this radio frequency reception assembly compares the rf data of acquisition and this reference rf data to determine whether the rf data of this acquisition is required rf data, if, then by the acquisition of fracture in this to this microcontroller notice rf data, if not, then enter readiness for action.
In one embodiment of this invention, this configuration register is configured by this microcontroller.
In one embodiment of this invention, after this microcontroller obtains this notice, receive and process this rf data, then reentering readiness for action.
In one embodiment of this invention, 1mS is greater than the interrupt cycle of this frequency temporal controller.
Under normal circumstances, the projector per minute of tire launches once this radiofrequency signal, in abnormal cases (as tire pressure sharply changes), projector transmitting per second once this rf data of tire.Therefore, setting interrupt cycle of frequency temporal controller, after can making automotive ignition, obtains minimum emitter data immediately.Owing to adopting above technical scheme, the present invention, compared with the one way communication TPMS system of prior art, under automobile flameout state, with lower power consumption for cost, can upgrade the data from tire projector.
Accompanying drawing explanation
For above-mentioned purpose of the present invention, feature and advantage can be become apparent, below in conjunction with accompanying drawing, the specific embodiment of the present invention is elaborated, wherein:
Fig. 1 illustrates the automobile ECU structure of one embodiment of the invention.
Fig. 2 A, Fig. 2 B illustrate the ECU workflow of one embodiment of the invention.
Fig. 3 illustrates the RF data frame format of one embodiment of the invention.
Detailed description of the invention
With reference now to accompanying drawing, describe theme required for protection, in whole accompanying drawing, use identical reference number to refer to identical element.In the following description, for the purpose of explaining, set forth numerous detail to provide the complete understanding to theme required for protection.But it is evident that, these themes also can not adopt these details to implement.In other cases, show in block form known construction and device so that describe the present invention.
Fig. 1 illustrates the automobile ECU structure of one embodiment of the invention.With reference to shown in Fig. 1, ECU (ElectronicControlUnit, electronic control unit) 100 is configured in automobile, as a part for TPMS (system for monitoring pressure in tyre).ECU100 comprises RF receiving unit 120 and MCU (MicroControlUnit, microcontroller) 140 two parts.The reception of RF receiving unit 120 primary responsibility RF signal and process, and export data to MCU140.MCU140 is as the core of ECU, and processing data also controls other external devices.
RF receiving unit 120 comprises high-frequency low-noise acoustic amplifier (LNA) 121, frequency mixer 122 and phaselocked loop (PLL) 123 further.This receiving unit can be used for receiving the RF signal from the projector of tire.Phaselocked loop 123 can, by the frequency of Frequency Locking at this RF signal, make receiving unit only effective to this frequency.Radio freqneucy oscillator (OSC) 124 provides required oscillation frequency to receiving unit.
Usually, expect that radio freqneucy oscillator and receiving unit do not work as far as possible, to reduce the power consumption of whole ECU.Therefore, after automobile flameout, these devices all enter standby mode.For this reason, configure a frequency temporal controller (WTA) 125, this WTA125 periodically can produce interruption, opens radio freqneucy oscillator 124.In the time cycle not having to interrupt, radio freqneucy oscillator and receiving unit keep readiness for action.For radio freqneucy oscillator 124, the cycle of cyclic interrupt is low frequency, at more than 1mS.With wake MCU up to start compared with radio frequency reception, the mode of what the present embodiment adopted wake up RF receiving unit 120, wakeup time can be made shorter, and owing to all need not wake MCU up at every turn, therefore required power consumption significantly reduces.
When whole RF receiving unit 120 is in mode of operation, signal transacting is carried out in path along LNA121, frequency mixer 122, filter 126, intermediate amplifier 127, to carry out the process such as High frequency amplification, mixing, filtering, intermediate frequency amplification, detection successively, be RF data by RF signals revivification, and export data by SPI129 to MCU140.Because the devices such as LNA121, frequency mixer 122, filter 126, intermediate amplifier 127 relate to the conventional processing of RF receiving unit 120, not emphasis of the present invention, does not thus launch in detail at this.
Be configured with reference to RF data in configuration register 130, the RF data be used for and reduce are compared, if data format conforms to, then RF receiving unit 120 can be interrupted to MCU140 request by middle fracture 131, MCU140 will be waken up, and process the input data of SPI141.
MCU140 comprises the interfaces such as such as SPI141, middle fracture 142, SCI144 and CAN145, and comprises flash memory (FLASH) 143 and RAM146.
Content in configuration register 130 can be write by SPI141 by MCU140.
According to designing requirement, MCU140 needs to select standby mode wakeup time short, the chip that standby mode is low in energy consumption, the MSP430 series of products of such as TI company.MCU140 is power consumption electric current about 1uA under low-power consumption mode, and wakeup time is less than 6uS.
In addition, for meeting newly-designed requirement: get rid of environmental factors and accurately can receive each frame RF data, no-missing-code situation, need appropriate design time slice RF frame format and RF data baud rate.
Fig. 3 illustrates an exemplary RF frame format, comprises wake-up signal territory, synchronizing signal territory, data field and stop bit.
For the modulation wave signal of baud rate 9600, the transmission time general 0.1mS of each, wake-up signal is made up of continuous print low and high level.Arrange RF receiving unit 120 be effectively judged as receive continuous 6 low and high levels, need time 0.6mS.For the time slice T of 1mS slot, wake-up signal is designed to the continuous low and high level of 1.6mS.For the other times sheet that the cycle is different, the time span of wake-up signal can be T slot+ 0.6mS.This will guarantee that each RF frame transmits, and its wake-up signal can drop in wake-up period, and make RF receiving unit 120 at least receive 6 continuous low and high level wake-up signals.Then RF receiving unit 120 produces and interrupts, and wakes MCU140 up and enters mode of operation, wait-receiving mode detection data.If RF receiving unit 120 does not detect RF signal, then at once enter readiness for action.
Fig. 2 A, Fig. 2 B illustrate the ECU workflow of one embodiment of the invention.Shown in Fig. 2 A, 2B, as step S1, when vehicle travels, keep ECU complete mode of operation, continuous reception and processing RF information.
Whether detect in step S2, MCU140 has vehicle to stop working level.
When MCU140 detects that vehicle stops working level, then start frequency temporal controller 125 in step S3, this frequency temporal controller timing range can reach 1mS by several days, the about 1.5 μ A of its power consumption electric current representative value.
Carry out parameter configuration in step S4, the MCU140 configuration register 130 to RF receiving unit 120, comprise RF frame format, the interrupt cycle of frequency temporal controller 125, and RF oscillator 12 be waken up after cycle of operations.In step S5, when not having RF signal, RF receiving unit 120 enters readiness for action, closes RF oscillator 124.
Then, enter readiness for action in step S6, MCU140 call instruction, close high frequency generator.MCU is power consumption electric current about 1uA under low-power consumption mode, and wakeup time is less than 6uS.
So ECU100, after vehicle is flame-out, only has frequency temporal controller 125 continuous firing, periodically produce interrupt signal (step S7), add the electric leakage etc. of other device, the power consumption electric current of ECU unit answers < 30uA.
The shortest interruption that can produce 1mS of frequency temporal controller 125.Can suitably configure suitable time slice T slot, this interruption is used for waking RF receiving unit 120 up and works (step S8).
After step S9, RF receiving unit 120 is waken up, detect whether there is RF signal, if any, then start process in step S10.If (such as 100uS) does not receive RF signal yet in the given time, then enter step S15.
Enter step S11 after step slo, the RF data that process produces compare with the reference RF data in configuration register 130, to judge that these RF data are required RF data, if so, enter step S12.Otherwise enter step S15.
Produce in step S12, RF receiving unit 120 and interrupt fast wake-up MCU140, the RF data after detection are passed to MCU140 process.
When MCU140 is after step S13 process completes, again enter readiness for action in step S14.
In step S15, owing to not having RF signal, or RF data are not the data needed, and RF receiving unit 120 enters readiness for action at once, waits for time slice T next time slotwhat produce wakes up.
For the design of above-mentioned one way communication, normal circumstances projector per minute launches a secondary data, every frame duration 20mS.ECU100 receive, process and to upper computer send information, the time is no more than 40mS.Suppose working current 15mA, per minute power consumption 15 × 40mAmS+30 × 60mAmS, so calculate average current 40uA, be less than the flame-out electric current (0.1mA) of regulation.In addition, emitter design pressure variation rapid fire function, when air pressure continues to change the change more than 0.11Bar/S, or variable quantity is more than 0.3Bar (for 3.5Bar range), and transmitting cycle time is 1S by projector, until change disappears.According to criterion validation high-low pressure warning function, due to tire pressure change procedure and stabilization process, the data that every frame sends can both be received by the ECU of readiness for action and process, so (10S) can complete the change of corresponding mark of reporting to the police at the appointed time after vehicle ignition.
In addition, can find out, the TPMS system of the embodiment of the present invention can't have higher requirement to the transmitting cycle of projector, and therefore emitter lifetime still can remain on more than 6 years, can not decline.
Although the present invention discloses as above with preferred embodiment; so itself and be not used to limit the present invention, any those skilled in the art, without departing from the spirit and scope of the present invention; when doing a little amendment and perfect, therefore protection scope of the present invention is when being as the criterion of defining with claims.

Claims (9)

1. an one way communication tire pressure monitoring system, comprises an electronic control unit, and this electronic control unit comprises:
Microcontroller;
Radio frequency reception assembly, this radio frequency reception assembly comprises frequency temporal controller and middle fracture, this frequency temporal controller is in order to produce periodic interruption, work is carried out to wake this radio frequency reception assembly up, this radio frequency reception assembly receive and the radiofrequency signal processed from a projector to obtain rf data, and by the acquisition of fracture in this to this microcontroller notice rf data; If do not receive radiofrequency signal within a schedule time, this radio frequency reception assembly enters readiness for action.
2. one way communication tire pressure monitoring system as claimed in claim 1, it is characterized in that, this radio frequency reception assembly also comprises a radio freqneucy oscillator, and this frequency temporal controller wakes this radio frequency reception assembly up by starting this radio freqneucy oscillator.
3. one way communication tire pressure monitoring system as claimed in claim 1, it is characterized in that, this radio frequency reception assembly also comprises a configuration register, and this configuration register is in order to configure interrupt cycle and this schedule time of frequency temporal controller.
4. one way communication tire pressure monitoring system as claimed in claim 3, it is characterized in that, this configuration register is configured by this microcontroller.
5. one way communication tire pressure monitoring system as claimed in claim 1, it is characterized in that, this radio frequency reception assembly also comprises a configuration register, in order to configure one with reference to rf data, this radio frequency reception assembly compares the rf data of acquisition and this reference rf data to determine whether the rf data of this acquisition is required rf data, if so, then by the acquisition of fracture in this to this microcontroller notice rf data, if not, then enter readiness for action.
6. one way communication tire pressure monitoring system as claimed in claim 5, it is characterized in that, this configuration register is configured by this microcontroller.
7. the one way communication tire pressure monitoring system as described in claim 1 or 5, is characterized in that, after this microcontroller obtains this notice, receives and processes this rf data, then reentering readiness for action.
8. one way communication tire pressure monitoring system as claimed in claim 1, it is characterized in that, the interrupt cycle of this frequency temporal controller is greater than 1mS.
9. one way communication tire pressure monitoring system as claimed in claim 1, is characterized in that, this projector under normal circumstances per minute launches once this radiofrequency signal, in abnormal cases transmitting per second once this rf data.
CN201110066744.XA 2011-03-18 2011-03-18 One way communication tire pressure monitoring system Active CN102673326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110066744.XA CN102673326B (en) 2011-03-18 2011-03-18 One way communication tire pressure monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110066744.XA CN102673326B (en) 2011-03-18 2011-03-18 One way communication tire pressure monitoring system

Publications (2)

Publication Number Publication Date
CN102673326A CN102673326A (en) 2012-09-19
CN102673326B true CN102673326B (en) 2016-01-20

Family

ID=46806128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110066744.XA Active CN102673326B (en) 2011-03-18 2011-03-18 One way communication tire pressure monitoring system

Country Status (1)

Country Link
CN (1) CN102673326B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107422716B (en) * 2017-04-20 2023-09-29 保隆霍富(上海)电子有限公司 Test device and test control method of TPMS (tire pressure monitor System)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5783992A (en) * 1996-07-22 1998-07-21 Delco Electronics Corp. Time based low tire pressure warning sensor
CN101301846A (en) * 2008-02-22 2008-11-12 哈尔滨工业大学 Calibration instrument and calibration method for automobile tire pressure monitoring system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3876799B2 (en) * 2002-09-09 2007-02-07 株式会社デンソー Tire pressure monitoring system
WO2006138344A1 (en) * 2005-06-14 2006-12-28 Siemens Vdo Automotive Corporation Signal recognition for combined receiver for remote keyless entry and pressure monitoring systems
JP4374005B2 (en) * 2006-08-31 2009-12-02 Okiセミコンダクタ株式会社 Wake-up control device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5783992A (en) * 1996-07-22 1998-07-21 Delco Electronics Corp. Time based low tire pressure warning sensor
CN101301846A (en) * 2008-02-22 2008-11-12 哈尔滨工业大学 Calibration instrument and calibration method for automobile tire pressure monitoring system

Also Published As

Publication number Publication date
CN102673326A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
EP2509032B1 (en) Application system and method thereof
CN107433828B (en) Tire pressure monitoring system, vehicle, tire pressure monitoring method and computer equipment
US9081565B2 (en) Communication network system for detect and wake up a network node that does not properly recognize a wake up frame
US20040066280A1 (en) Wireless communications systems, radio frequency identification devices, wireless communications methods, and radio frequency identification device communications methods
CN101332749A (en) Monitoring method and monitoring device for automobile tire data
US7587195B2 (en) Wireless communications apparatus made operative in dependent upon a received signal strength
US9741232B2 (en) Portable device searching device, portable device searching method, portable device searching program
JP2003517242A (en) Electronic device having an operating mode and an energy saving stationary mode and a method for switching between the two modes
CN107690753B (en) Low power ultra-wideband transmitter
CN110572868B (en) Method and device for reducing power consumption of electronic device
CN102538140A (en) Multi-carrier air-conditioning infrared signal self-learning controller and method thereof
US8712363B2 (en) Power-saving receiver
US20140085067A1 (en) Apparatus for tire pressure monitoring, information transmissing method thereof and intergrated receiver system
CN102673326B (en) One way communication tire pressure monitoring system
US20220043763A1 (en) Method for data transmission and circuit arrangement thereof
JP2009248711A (en) On-vehicle communication system
CN110475324B (en) Low power heartbeat for low power mode
CN106452647A (en) Radio frequency device and wireless sensor network system
CN114083984B (en) New energy vehicle static power supply control method and system
CN100504681C (en) Power supply management device of tyre pressure monitoring system
TW201536594A (en) Passive trigger-type tire pressure detection system and method
CN107733763A (en) Multimode combined chip and electronic equipment
KR102440593B1 (en) System and method for tire monitoring
CN114578723A (en) System for identifying a controller causing a vehicle discharge
US6219217B1 (en) Method for the energy-saving operation of a control unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160523

Address after: 201619, No. 4, Shen brick road 5500, Jing Zhen Town, Shanghai, Songjiang District

Patentee after: Shanghai Qunying Automotive Electronics Co. Ltd.

Address before: 201619, No. 71, luxuriant Road, Jing Jing Town, Shanghai, Songjiang District

Patentee before: Baolong Motor Science & Technology Co., Ltd., Shanghai

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170601

Address after: 201619 No. 5500 Shen brick road, Shanghai, Songjiang District

Patentee after: Baolong Motor Science & Technology Co., Ltd., Shanghai

Address before: 201619, No. 4, Shen brick road 5500, Jing Zhen Town, Shanghai, Songjiang District

Patentee before: Shanghai Qunying Automotive Electronics Co. Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190109

Address after: 201619 No. 5500 Shenzhuan Highway, Songjiang District, Shanghai

Patentee after: Baolong Huofu (Shanghai) Electronics Co., Ltd.

Address before: 201619 No. 5500 Shenzhuan Highway, Songjiang District, Shanghai

Patentee before: Baolong Motor Science & Technology Co., Ltd., Shanghai