The invention provides a cloud 
system for analyzing shopping habits based on a trolley and a 
base station. The 
system comprises a terminal, service terminals, a 
base station and a trolley with an electronic lock, the terminal is in communication connection with the 
server through HTTP (S). The plurality of base stations are distributed in a shopping 
cart taking area, a supermarket shopping area and a shopping 
cart returning area; the 
base station is all in communication connection with the service terminals through Socket. The electronic lock installed on the handcart with the electronic lockis connected with the base 
station through WIFI, GPRS, 4G, 5G, 5G, 5G, 5G, 5G, 5G, 5G, 5G, 5G, 5G, 5G, 5G, 5G and 5G. The LORA, the NBiot, the 
Bluetooth or the NFC connection is realized; the 
server side monitors the trolley with the electronic lock through the base 
station; the beneficial effects of the invention are that: the method is suitable for industrial production; technique maturation stabilization, the 
system is reasonable in framework, stable and convenient to operate and low in cost, the supermarket shopping carts are managed in a 
server-base 
station-electronic lock mode, data collection, analysis and 
processing of a cloud system are combined, the consumption desire of consumers and the recognition degree of the supermarket can be improved, and powerful help can be provided forthe supermarket to know 
customer requirements, optimize commodity 
layout and increase the turnover.