CN102306237A - Internet-based interactive digital media terminal device - Google Patents
Internet-based interactive digital media terminal device Download PDFInfo
- Publication number
- CN102306237A CN102306237A CN201110196124A CN201110196124A CN102306237A CN 102306237 A CN102306237 A CN 102306237A CN 201110196124 A CN201110196124 A CN 201110196124A CN 201110196124 A CN201110196124 A CN 201110196124A CN 102306237 A CN102306237 A CN 102306237A
- Authority
- CN
- China
- Prior art keywords
- unit
- digital media
- internet
- card
- user
- 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.)
- Pending
Links
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 27
- 238000000034 method Methods 0.000 claims description 9
- 239000010453 quartz Substances 0.000 claims description 5
- VYPSYNLAJGMNEJ-UHFFFAOYSA-N silicon dioxide Inorganic materials O=[Si]=O VYPSYNLAJGMNEJ-UHFFFAOYSA-N 0.000 claims description 5
- 230000000737 periodic effect Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 abstract description 12
- 239000013078 crystal Substances 0.000 abstract description 5
- 238000011156 evaluation Methods 0.000 abstract description 2
- 238000011084 recovery Methods 0.000 abstract description 2
- 230000006837 decompression Effects 0.000 abstract 1
- 239000004973 liquid crystal related substance Substances 0.000 abstract 1
- 238000012545 processing Methods 0.000 description 8
- 239000003990 capacitor Substances 0.000 description 7
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 206010010219 Compulsions Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000008713 feedback mechanism Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域 technical field
本发明涉及网络通信领域,具体涉及一种基于因特网的交互式数字媒体终端装置。 The invention relates to the field of network communication, in particular to an Internet-based interactive digital media terminal device.
背景技术 Background technique
目前,楼梯间、候机室、火车站等公共场所,均已出现各种形式的数字媒体广告系统,它们通常使用闭路广告机方案。 At present, various forms of digital media advertising systems have appeared in public places such as stairwells, waiting rooms, and railway stations, and they usually use closed-circuit advertising machine solutions. the
闭路广告机是利用高频电缆、光缆、微波等传输信号,并在一定的用户中进行分配和播放声音、图像等信息的电视系统。目前的闭路广告机已经从开始的两三个频道发展到几十个频道甚至更多,从几十个用户的小系统发展到几百万的大系统,传输距离从几百米发展到上百公里。从单纯的电缆传输发展到集光缆、微波、电缆一体的综合系统,从单一的传输电视节目发展到同计算机、语音交换网络技术的融合,实现多种信息、多种业务的传送,从隔频传输发展到邻频传输,正在向数字化、多功能化、产业化和全国联网的方向发展。 Closed-circuit advertising machine is a TV system that uses high-frequency cables, optical cables, microwaves, etc. to transmit signals, and distributes and plays sounds, images, and other information among certain users. The current closed-circuit advertising machine has developed from the first two or three channels to dozens of channels or even more, from a small system with dozens of users to a large system with millions, and the transmission distance has grown from a few hundred meters to hundreds of meters. kilometer. From simple cable transmission to a comprehensive system integrating optical cable, microwave, and cable, from a single transmission of TV programs to the integration of computer and voice switching network technologies, to realize the transmission of various information and services, from frequency separation The transmission has developed to the adjacent frequency transmission, and is developing in the direction of digitization, multi-function, industrialization and national networking.
广告机方案的主要特点是采用频道模式发布广告,其优势是:对于移动公共场所如公共汽车等,可以不需要布线便可接受信号;另外,覆盖面积较大。其明显劣势是:(1)系统建设成本高昂,且需要信号中继。广告机的操作复杂,需专业人员定期维护。不能实现远程,对终端不能管理。(2)采用频道广播方式,如果需要针对不同的客户对象播放不同的广告内容,则需要增加多个频道支持,后续的维护使用费用十分高昂,而且无法针对细分广告需求做出灵活拓展。(3)广告机系统方案在使用方面十分不便,需要专业人员才能熟练应用该系统,普通人员无法马上熟练操作。(4)如遇到信号不好的区域,终端显示效果十分不理想,甚至为人所厌。 The main feature of the advertising machine solution is to use the channel mode to publish advertisements. Its advantages are: for mobile public places such as buses, it can receive signals without wiring; in addition, the coverage area is large. Its obvious disadvantages are: (1) The system construction cost is high and signal relay is required. The operation of the advertising machine is complicated and requires regular maintenance by professionals. Remote control cannot be realized, and the terminal cannot be managed. (2) Channel broadcasting is adopted. If different advertising content needs to be played for different customers, multiple channels need to be supported. Subsequent maintenance and usage costs are very high, and it is impossible to flexibly expand for subdivided advertising needs. (3) The advertising machine system solution is very inconvenient to use. Professionals are required to use the system proficiently, and ordinary people cannot immediately operate it proficiently. (4) If you encounter an area with poor signal, the display effect of the terminal is very unsatisfactory, even annoying.
另外,广告投放“强迫性”这一弊端开始突显。“强迫性”是指无论广告的受欢迎程度如何,都会出现在观众的视野内。强制性收看既可作为一个引起高关注度的优点,从另一方面看又是一个弊端,极易引起观众的反感。目前大量的媒体广告创意都只局限于广告本身的展示和互动,广告形式和用户的交互形式都略显单一。这种扼杀观众意志的强制性广告,将会遭到观众的抵制。久而久之,就形成了“广告盲区”,这将降低广告的效果。 In addition, the disadvantage of "compulsive" advertising has begun to emerge. "Compulsive" means that the ad will appear in the viewer's field of view regardless of its popularity. Compulsory viewing can be regarded as an advantage that attracts high attention, but on the other hand it is a disadvantage, which can easily arouse the audience's disgust. At present, a large number of media advertising ideas are limited to the display and interaction of the advertisement itself, and the form of advertisement and user interaction are somewhat single. This kind of mandatory advertisement that kills the will of the audience will be resisted by the audience. Over time, an "advertising blind spot" is formed, which will reduce the effectiveness of advertising.
发明内容 Contents of the invention
针对现有技术存在的问题,本发明提供一种基于因特网的交互式数字媒体终端装置。当本发明装置应用于广告投放时,其反馈机制可以平衡广告强制性与用户满意度之间的矛盾关系,实现了高效准确的广告投放。 Aiming at the problems existing in the prior art, the present invention provides an Internet-based interactive digital media terminal device. When the device of the present invention is applied to advertisement placement, its feedback mechanism can balance the contradictory relationship between advertisement compulsion and user satisfaction, thereby realizing efficient and accurate advertisement placement.
本发明的技术方案是:基于因特网的交互式数字媒体终端装置包括:处理器单元、供电单元、LCD显示单元、网络接口单元、SD卡单元和交互按钮单元。本装置通过网络接口单元以TCP协议接收PC机传来的数字媒体存储在SD卡单元中,然后把数字媒体通过解压缩和解码后显示在LCD显示单元,交互按钮单元用于接收用户对广告内容的反馈信息。装置通过RJ45端口连接到因特网,将用户反馈信息及时上传给PC监控中心;所述数字媒体包括JPG格式图片和AVI视频。 The technical solution of the present invention is: the Internet-based interactive digital media terminal device includes: a processor unit, a power supply unit, an LCD display unit, a network interface unit, an SD card unit and an interactive button unit. The device receives the digital media from the PC through the network interface unit and stores them in the SD card unit through the TCP protocol, and then decompresses and decodes the digital media and displays them on the LCD display unit. The interactive button unit is used to receive the user's advertisement content feedback information. The device is connected to the Internet through the RJ45 port, and the user feedback information is uploaded to the PC monitoring center in time; the digital media includes pictures in JPG format and AVI video.
处理器单元主要包括单片机,复位电路和时钟电路,解释程序指令以及按照程序指令控制其他单元完成相应的操作。 The processor unit mainly includes a single-chip microcomputer, a reset circuit and a clock circuit, interprets program instructions and controls other units to complete corresponding operations according to program instructions.
复位电路包括按钮,电阻和电容,通过按钮完成装置的复位操作。芯片复位条件是RESET#引脚被置为低电平足够长时间。当按钮按下后,RESET#引脚被置为低电平,按钮松开后RESET#引脚缓慢恢复高电平。 The reset circuit includes a button, a resistor and a capacitor, and the reset operation of the device is completed through the button. The chip reset condition is that the RESET# pin is set low for a long enough time. When the button is pressed, the RESET# pin is set to a low level, and the RESET# pin slowly returns to a high level after the button is released.
时钟电路包括两个电容,两个电阻和一个石英晶体振荡器。 The clock circuit consists of two capacitors, two resistors and a quartz crystal oscillator.
供电单元通过电压转换芯片转换电压,为整个装置的各个单元供电。 The power supply unit converts the voltage through the voltage conversion chip to supply power to each unit of the whole device.
LCD显示单元用于显示数字媒体内容。 The LCD display unit is used to display digital media content.
网络接口单元连接到中央处理器的SPI端口上。 The network interface unit is connected to the SPI port of the central processing unit.
SD卡单元接收处理器单元的数字媒体内容,SD卡与SD卡槽相连,媒体文件存储在SD卡中。 The SD card unit receives digital media content from the processor unit, the SD card is connected to the SD card slot, and the media files are stored in the SD card.
交互按钮单元包括开关,电阻和电容,用来采集用户对广告的反馈信息,两个开关分别连接到处理器单元的两个输入端口,这两个开关的含义分别是“喜欢”和“跳过”。 The interactive button unit includes switches, resistors and capacitors, which are used to collect user feedback on advertisements. The two switches are respectively connected to the two input ports of the processor unit. The meanings of these two switches are "like" and "skip" respectively. ".
处理器单元中的复位电路的输出端接到单片机的复位端口上,时钟电路中的石英晶体振荡器两端通过电容接地后与一个电阻并联,其中一端直接作为一个输出端,另一端串联电阻后作为另一输出端,时钟电路的两输出端接到单片机的时钟端口,为中央处理器提供一个稳定的时钟源。供电单元的输出端接到单片机的电源端口。单片机输出的LCD控制信号通过通用输出端口输出到LCD显示模块,网络接口单元和SD卡单元均通过SPI总线连接到单片机的SPI端口。交互按钮单元的输出端分别接到单片机的两个输入端口。 The output terminal of the reset circuit in the processor unit is connected to the reset port of the single-chip microcomputer. The two ends of the quartz crystal oscillator in the clock circuit are grounded through a capacitor and connected in parallel with a resistor. One end is directly used as an output end, and the other end is connected in series with a resistor. As another output terminal, the two output terminals of the clock circuit are connected to the clock port of the single-chip microcomputer to provide a stable clock source for the central processing unit. The output end of the power supply unit is connected to the power port of the single-chip microcomputer. The LCD control signal output by the single-chip microcomputer is output to the LCD display module through the general output port, and the network interface unit and the SD card unit are connected to the SPI port of the single-chip microcomputer through the SPI bus. The output terminals of the interactive button unit are respectively connected to the two input ports of the single-chip microcomputer.
所述基于因特网的交互式数字媒体终端装置的控制流程如下: The control flow of the Internet-based interactive digital media terminal device is as follows:
步骤1:装置在上电后,按照SD卡中存储的配置信息对整个装置进行初始化。 Step 1: After the device is powered on, initialize the entire device according to the configuration information stored in the SD card.
一个网络中的所有装置必须有正确的IP配置,本发明中通过PC机把配置信息存入SD卡以便更改装置的IP配置。配置信息包含本发明装置的IP地址、端口号、目的IP地址和目的端口号。 All devices in a network must have correct IP configurations. In the present invention, the configuration information is stored in the SD card through a PC so as to change the IP configurations of the devices. The configuration information includes the IP address, port number, destination IP address and destination port number of the device of the present invention.
单片机的初始化包括如下过程:时钟的初始化,中断系统的初始化,SPI接口的初始化,输入输出引脚的初始化,USART接口的初始化,LCD显示屏初始化和网络通讯接口初始化。 The initialization of the single-chip microcomputer includes the following processes: initialization of the clock, initialization of the interrupt system, initialization of the SPI interface, initialization of the input and output pins, initialization of the USART interface, initialization of the LCD display screen, and initialization of the network communication interface.
步骤2:初始化完成后,进行周期性查询。 Step 2: After the initialization is complete, perform periodic queries.
当装置接收到JPEG格式图片或AVI视频时,将其储在SD卡中,并对数字媒体文件进行解压缩和解码,然后显示在LCD上。 When the device receives a JPEG format picture or AVI video, it stores it in the SD card, decompresses and decodes the digital media file, and then displays it on the LCD.
如果没有接收到JPEG格式图片或AVI视频时,装置将按照如下方式选取SD卡中的一个媒体文件并对数字媒体文件进行解压缩和解码,然后显示在LCD上。 If no JPEG format picture or AVI video is received, the device will select a media file in the SD card as follows and decompress and decode the digital media file, and then display it on the LCD.
选取SD卡中文件方法如下:将n种广告按被选择为“喜爱”的次数由多到少排序,排序后的广告名分别赋值给变量A1至An,再将n种广告按播放的次数由多到少排序,排序后的广告名分别赋值给变量B1至Bn。如果A1不等于B1,则选取A1,如果A1=B1,则比较A2和B2。如果A2不等于B2,则选取A2,如果A2=B2,则比较A3和B3……如果A和B完全相同,则随机选取一个。这样,用户喜欢的内容出现的频率高于该用户不喜欢的内容出现的频率。 The method of selecting files in the SD card is as follows: sort the n types of advertisements according to the number of times they are selected as "favorites" from most to least, assign the sorted advertisement names to the variables A1 to An respectively, and then sort the n types of advertisements according to the number of times played by Sort from more to less, and assign the sorted advertisement names to variables B1 to Bn respectively. If A1 is not equal to B1, then pick A1, if A1=B1, then compare A2 and B2. If A2 is not equal to B2, pick A2, if A2=B2, compare A3 and B3...if A and B are exactly the same, pick one at random. In this way, the content that the user likes appears more frequently than the content that the user does not like.
每次播放数字媒体内容后有三秒钟的延时用来等待用户按键。用户按键一共有两个,按键名称分别为“喜爱”和“跳过”。用户按键用来收集用户对当前显示广告的喜欢程度,以便有针对性的改进广告。当用户喜欢当前数字媒体内容时,用户按“喜爱”按钮;反之,用户按“跳过”按钮。当装置收到按键反馈信息后,立刻将该反馈信息通过网络接口单元发送到PC监控中心,同时存储到SD卡中。 There is a three-second delay after each digital media content is played to wait for the user to press a key. There are two user buttons, and the button names are "Favorite" and "Skip". The user button is used to collect the user's liking for the currently displayed advertisement, so as to improve the advertisement in a targeted manner. When the user likes the current digital media content, the user presses the "favorite" button; otherwise, the user presses the "skip" button. When the device receives the key feedback information, it immediately sends the feedback information to the PC monitoring center through the network interface unit, and stores it in the SD card at the same time.
步骤3:进入下一个查询周期。 Step 3: Enter the next query cycle.
有益效果Beneficial effect
本发明通过SD卡存储数字媒体和用户评价信息,保证了信息的安全和断电后的自动恢复能力。装置适应性强,通过RJ45水晶头插槽与互联网相连,连接方便,传输速度快,接入因特网的终端可以保证信息的实时性和准确性。装置结构紧凑、尺寸小巧、可靠性高、安装方便且价格适中,有利于大规模普遍使用。 The invention stores digital media and user evaluation information through the SD card, thereby ensuring the safety of the information and the automatic recovery ability after power failure. The device has strong adaptability. It is connected to the Internet through the RJ45 socket, which is convenient for connection and fast in transmission speed. The terminal connected to the Internet can ensure the real-time and accuracy of information. The device has the advantages of compact structure, small size, high reliability, convenient installation and moderate price, and is favorable for large-scale and universal use.
附图说明 Description of drawings
图1 本发明整体结构框图; Fig. 1 overall structural block diagram of the present invention;
图2 本发明实施例供电单元电路图; Fig. 2 is the circuit diagram of the power supply unit of the embodiment of the present invention;
图3 本发明实施例处理器单元电路图; Fig. 3 is the circuit diagram of the processor unit of the embodiment of the present invention;
图4 本发明系统程序流程图; Fig. 4 is a flow chart of the system program of the present invention;
图5 本发明实施例LCD显示屏接口电路; Fig. 5 LCD display interface circuit of the embodiment of the present invention;
图6 本发明实施例交互按钮单元电路; Fig. 6 is the interactive button unit circuit of the embodiment of the present invention;
图7 本发明实施例网络接口单元电路; Fig. 7 is the network interface unit circuit of the embodiment of the present invention;
图8 本发明实施例SD卡模块接口电路; Fig. 8 SD card module interface circuit of the embodiment of the present invention;
图9 本发明实施例复位电路原理图; Figure 9 is a schematic diagram of the reset circuit of the embodiment of the present invention;
图10 本发明实施例时钟电路原理图。 Fig. 10 is a schematic diagram of the clock circuit of the embodiment of the present invention.
具体实施方式 Detailed ways
下面结合附图和实施例对本发明进一步说明。 The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
基于因特网的交互式数字媒体终端装置,包括:处理器单元、供电单元、LCD显示单元、网络接口单元、SD卡文件系统和交互按钮单元。本发明系统结构如图1所示; The Internet-based interactive digital media terminal device includes: a processor unit, a power supply unit, an LCD display unit, a network interface unit, an SD card file system and an interactive button unit. The system structure of the present invention is as shown in Figure 1;
处理器单元主要包括单片机,复位电路和时钟电路,解释程序指令以及按照程序指令控制其他单元完成相应的操作。 The processor unit mainly includes a single-chip microcomputer, a reset circuit and a clock circuit, interprets program instructions and controls other units to complete corresponding operations according to program instructions.
复位电路由按钮,电阻和电容组成,通过按钮完成装置的复位操作,电路如图9所示。当按钮按下后,RESET#引脚被置为低电平,按钮松开后RESET#引脚缓慢恢复高电平。 The reset circuit is composed of a button, a resistor and a capacitor. The reset operation of the device is completed through the button. The circuit is shown in Figure 9. When the button is pressed, the RESET# pin is set to a low level, and the RESET# pin slowly returns to a high level after the button is released.
时钟电路由两个电容,两个电阻和一个石英晶体振荡器组成,电路如图10所示。通过OSC_IN和OSC_OUT和中央处理器相连,该电路为中央处理器提供一个稳定的时钟源。 The clock circuit consists of two capacitors, two resistors and a quartz crystal oscillator. The circuit is shown in Figure 10. Connected to the central processing unit through OSC_IN and OSC_OUT, this circuit provides a stable clock source for the central processing unit.
中央处理器采用的芯片型号为STM32F103RDT6的单片机,其内部集成了ARM7的Cortex-M3内核,最高时钟频率可达72MHZ,片内包含384K的ROM和64K的RAM。利用片内集成的2个SPI接口分别与网络接口芯片和SD卡进行通信,处理器单元电路如图3所示。 The chip model used by the central processing unit is STM32F103RDT6 microcontroller, which integrates the ARM7 Cortex-M3 core, the highest clock frequency can reach 72MHZ, and the chip contains 384K ROM and 64K RAM. Use the two SPI interfaces integrated in the chip to communicate with the network interface chip and SD card respectively, and the processor unit circuit is shown in Figure 3.
供电单元为整个装置的各个单元供电,供电单元通过电压转换芯片AS1117-3.3把5V电压转换成3.3V,5V电压由有DC_IN1的插头中的1,2引脚接入。供电单元结构如图2所示。
The power supply unit supplies power to each unit of the whole device. The power supply unit converts the 5V voltage to 3.3V through the voltage conversion chip AS1117-3.3, and the 5V voltage is connected to
LCD显示单元采用2.8寸的彩色液晶显示屏,驱动芯片型号为ili9320,分辨率为240 320,接线端口如表1所示。ili9320有可以用来读写寄存器和显示图标存储器的系统接口和用来显示动态图形的RGB接口。所有的数据是存在GRAM中的,这样可以降低数据传输的工作,只有必须更新的数据才被传送。Ili9320采用的是18位总路线接口结构的高性能微处理器。LCD显示屏接口电路如图5所示,该LCD显示屏价格便宜、通用性好。 The LCD display unit adopts a 2.8-inch color LCD display, the driver chip model is ili9320, and the resolution is 240 320, the wiring ports are shown in Table 1. ili9320 has a system interface that can be used to read and write registers and display icon memory, and an RGB interface that can be used to display dynamic graphics. All data is stored in GRAM, which can reduce the work of data transmission, and only the data that must be updated is transmitted. Ili9320 adopts a high-performance microprocessor with 18-bit bus line interface structure. The LCD display interface circuit is shown in Figure 5. The LCD display is cheap and versatile.
表1 LCD显示屏接线端口 Table 1 LCD display wiring port
网络接口单元采用网络接口芯片W5100,网络接口单元电路如图7所示。W5100中固化了从MAC层、网络层到传输层所需要的协议,并集成了高速以太网物理层接口控制器,再加上RJ45插座和外围的辅助电路,就可以方便的实现嵌入式单片机通过以太网和局域网内的计算机通讯,使得本发明实现了将采集器数据自动上传给监测中心的功能,省去了传统方法中逐个手工采集数字仪表识读装置数据的繁琐工作,大大降低了运营成本,提高了数据采集的可靠性。网络接口单元与PC监控中心建立TCP连接,通过TCP协议进行信息传输,终端装置作为TCP通信中的客户端,主动向PC机发起连接请求,当TCP连接意外断开时,终端装置会自动重连。该网络接口单元的接线端口如表2所示。 The network interface unit adopts the network interface chip W5100, and the circuit of the network interface unit is shown in Figure 7. W5100 solidifies the protocols required from the MAC layer, network layer to the transport layer, and integrates the high-speed Ethernet physical layer interface controller, together with the RJ45 socket and peripheral auxiliary circuits, it is convenient to realize the embedded single chip through The computer communication in the Ethernet and the local area network enables the present invention to realize the function of automatically uploading the collector data to the monitoring center, eliminating the cumbersome work of manually collecting the data of the digital instrument reading device one by one in the traditional method, and greatly reducing the operating cost , improving the reliability of data collection. The network interface unit establishes a TCP connection with the PC monitoring center, and transmits information through the TCP protocol. As the client in the TCP communication, the terminal device actively initiates a connection request to the PC. When the TCP connection is accidentally disconnected, the terminal device will automatically reconnect . The wiring ports of the network interface unit are shown in Table 2.
表2 网络接口单元的接线端口 Table 2 Wiring ports of the network interface unit
SD卡单元存储配置和数字媒体信息,SD卡单元电路如图8所示。SD_CARD1为SD卡槽,其中1至9脚直接与SD卡相连。SD卡槽上各信号的连接情况如表3所示。SPI1_MISO, SPI1_SCK, SPI1_MOSI, SD_CS信号与处理器单元的PA4至PA7端口相连。 The SD card unit stores configuration and digital media information, and the circuit of the SD card unit is shown in Figure 8. SD_CARD1 is the SD card slot, where pins 1 to 9 are directly connected to the SD card. The connection of each signal on the SD card slot is shown in Table 3. The SPI1_MISO, SPI1_SCK, SPI1_MOSI, SD_CS signals are connected to the PA4 to PA7 ports of the processor unit.
表3 SD卡槽上的信号连接情况 Table 3 Signal connections on the SD card slot
交互按钮单元电路如图6所示。交互按钮单元连接到处理器单元的PA0和PA1端口上;SD卡单元连接到处理器单元的PA4至PA7端口上,利用SPI方式与单片机进行数据/图像的双向传输;网络接口单元连接到单片机的PB12至PB15端口上,利用SPI方式与单片机进行数据/图像的双向传输;此外,单片机的PA8至PA11,NRST和PC0至PC15端口分别连接到LCD显示模块中的引脚1至引脚21。
The interactive button unit circuit is shown in Figure 6. The interactive button unit is connected to the PA0 and PA1 ports of the processor unit; the SD card unit is connected to the PA4 to PA7 ports of the processor unit, and uses SPI to perform bidirectional data/image transmission with the single-chip microcomputer; the network interface unit is connected to the single-chip microcomputer On the PB12 to PB15 ports, use the SPI method to perform bidirectional data/image transmission with the MCU; in addition, the MCU’s PA8 to PA11, NRST and PC0 to PC15 ports are respectively connected to
复位电路的输出端接到单片机的RESET#端口上,时钟电路中的石英晶体振荡器两端通过电容接地后与一个电阻并联,其中一端直接作为一个输出端,另一端串联电阻后作为另一输出端,时钟电路的两输出端接到单片机的OSC_IN和OSC_OUT端口上,为中央处理器提供一个稳定的时钟源。供电单元的输出端接到单片机的VDD和VSS端口上。单片机输出的LCD控制信号通过PA8至PA11,NRST和PC0至PC15端口输出到LCD显示模块,与LCD显示单元的1至15端口连接。网络接口单元的3,4,1,2端口连接到中央处理器的PB12至PB15端口上。SD卡单元的1,5,7,2端口连接到中央处理器的PA4至PA7端口上。交互按钮单元的输出端“喜欢”和“跳过”分别接到单片机的PA0,PA1端口上。
The output terminal of the reset circuit is connected to the RESET# port of the single-chip microcomputer. The two ends of the quartz crystal oscillator in the clock circuit are grounded through a capacitor and connected in parallel with a resistor. One of the terminals is directly used as an output terminal, and the other terminal is connected in series with a resistor as another output terminal. The two output terminals of the clock circuit are connected to the OSC_IN and OSC_OUT ports of the microcontroller to provide a stable clock source for the central processing unit. The output terminal of the power supply unit is connected to the VDD and VSS ports of the microcontroller. The LCD control signal output by the microcontroller is output to the LCD display module through the PA8 to PA11, NRST and PC0 to PC15 ports, and connected to the 1 to 15 ports of the LCD display unit.
本发明整体程序设计流程如图4所示,所述基于因特网的交互式数字媒体终端装置的控制流程如下: The overall program design process of the present invention is as shown in Figure 4, and the control process of the described Internet-based interactive digital media terminal device is as follows:
步骤1:装置在上电后,按照SD卡中存储的配置信息对整个装置进行初始化。 Step 1: After the device is powered on, initialize the entire device according to the configuration information stored in the SD card.
一个网络中的所有装置必须有正确的IP配置,本发明中通过PC机把配置信息存入SD卡以便更改装置的IP配置。配置信息包含本发明装置的IP地址、端口号、目的IP地址和目的端口号。 All devices in a network must have correct IP configurations. In the present invention, the configuration information is stored in the SD card through a PC so as to change the IP configurations of the devices. The configuration information includes the IP address, port number, destination IP address and destination port number of the device of the present invention.
配置文件用于存储IP配置信息。IP配置信息包括本装置的IP地址,本装置的端口号,目的IP地址和目的端口号。这四项信息在配置文件中按顺序排列,每项占一行,例如: Configuration files are used to store IP configuration information. The IP configuration information includes the IP address of the device, the port number of the device, the destination IP address and the destination port number. These four items of information are arranged in order in the configuration file, and each item occupies one line, for example:
配置文件内容如下: The content of the configuration file is as follows:
192.168.1.3 192.168.1.3
3000 3000
202.118.18.14 202.118.18.14
50000 50000
其中,192.168.1.3是本装置的IP地址,3000是本装置的端口号,202.118.18.14是目的IP地址,50000是目的端口号。 Among them, 192.168.1.3 is the IP address of the device, 3000 is the port number of the device, 202.118.18.14 is the destination IP address, and 50000 is the destination port number.
单片机的初始化包括如下过程:时钟的初始化,中断系统的初始化,SPI接口的初始化,输入输出引脚的初始化,USART接口的初始化,LCD显示屏初始化和网络通讯接口初始化。 The initialization of the single-chip microcomputer includes the following processes: initialization of the clock, initialization of the interrupt system, initialization of the SPI interface, initialization of the input and output pins, initialization of the USART interface, initialization of the LCD display screen, and initialization of the network communication interface.
步骤2:初始化完成后,进行周期性查询。 Step 2: After the initialization is complete, perform periodic queries.
当装置接收到JPEG格式图片或AVI视频时,将其存储在SD卡中,并对数字媒体文件进行解压缩和解码,然后显示在LCD上。 When the device receives a JPEG format picture or AVI video, it stores it in the SD card, decompresses and decodes the digital media file, and then displays it on the LCD.
如果没有接收到JPEG格式图片或AVI视频时,装置将按照如下方式选取SD卡中的一个媒体文件并对数字媒体数据进行解压缩和解码,然后显示在LCD上。 If no JPEG format picture or AVI video is received, the device will select a media file in the SD card as follows and decompress and decode the digital media data, and then display it on the LCD.
选取SD卡中文件方法如下:将n种广告按被选择为“喜爱”的次数由多到少排序,排序后的广告名分别赋值给变量A1至An,再将n种广告按播放的次数由多到少排序,排序后的广告名分别赋值给变量B1至Bn。如果A1不等于B1,则选取A1,如果A1=B1,则比较A2和B2。如果A2不等于B2,则选取A2,如果A2=B2,则比较A3和B3……如果A和B完全相同,则随机选取一个。这样,用户喜欢的内容出现的频率高于该用户不喜欢的内容出现的频率。 The method of selecting files in the SD card is as follows: sort the n types of advertisements according to the number of times they are selected as "favorites" from most to least, assign the sorted advertisement names to the variables A1 to An respectively, and then sort the n types of advertisements according to the number of times played by Sort from more to less, and assign the sorted advertisement names to variables B1 to Bn respectively. If A1 is not equal to B1, then pick A1, if A1=B1, then compare A2 and B2. If A2 is not equal to B2, pick A2, if A2=B2, compare A3 and B3...if A and B are exactly the same, pick one at random. In this way, the content that the user likes appears more frequently than the content that the user does not like.
每次播放数字媒体内容后有三秒钟的延时用来等待用户按键。用户按键一共有两个,按键名称分别为“喜爱”和“跳过”。用户按键用来收集用户对当前显示广告的喜欢程度,以便有针对性的改进广告。当用户喜欢当前广告内容时,用户按“喜爱”按钮;反之,用户按“跳过”按钮。当装置收到按键反馈信息后,立刻将该反馈信息通过网络接口单元发送到PC监控中心,同时存储到SD卡中。 There is a three-second delay after each digital media content is played to wait for the user to press a key. There are two user buttons, and the button names are "Favorite" and "Skip". The user button is used to collect the user's liking for the currently displayed advertisement, so as to improve the advertisement in a targeted manner. When the user likes the content of the current advertisement, the user presses the "favorite" button; otherwise, the user presses the "skip" button. When the device receives the key feedback information, it immediately sends the feedback information to the PC monitoring center through the network interface unit, and stores it in the SD card at the same time.
步骤3:进入下一个查询周期。 Step 3: Enter the next query cycle.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110196124A CN102306237A (en) | 2011-07-13 | 2011-07-13 | Internet-based interactive digital media terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110196124A CN102306237A (en) | 2011-07-13 | 2011-07-13 | Internet-based interactive digital media terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102306237A true CN102306237A (en) | 2012-01-04 |
Family
ID=45380098
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110196124A Pending CN102306237A (en) | 2011-07-13 | 2011-07-13 | Internet-based interactive digital media terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102306237A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331207A (en) * | 2016-03-21 | 2017-01-11 | 北京华盛普讯技术股份有限公司 | Android system-based multiple-IP Addresses setting method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050245995A1 (en) * | 2004-04-30 | 2005-11-03 | Biotronik Gmbh & Co. Kg | Transmitting and receiving device |
CN101198018A (en) * | 2007-12-29 | 2008-06-11 | 腾讯科技(深圳)有限公司 | Method for implementing television advertisement service and advertisement server |
CN101227522A (en) * | 2007-01-15 | 2008-07-23 | 上海理工大学 | Interactive advertisement system |
CN201191487Y (en) * | 2008-05-12 | 2009-02-04 | 肖江 | Small and medium sized liquid crystal advertisement machine applied under advertisement environment |
CN101588258A (en) * | 2008-05-19 | 2009-11-25 | 华为技术有限公司 | Information uploading method and system |
CN201563196U (en) * | 2009-11-18 | 2010-08-25 | 吉林大元电子科技有限公司 | Video e-network visual information terminal |
-
2011
- 2011-07-13 CN CN201110196124A patent/CN102306237A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050245995A1 (en) * | 2004-04-30 | 2005-11-03 | Biotronik Gmbh & Co. Kg | Transmitting and receiving device |
CN101227522A (en) * | 2007-01-15 | 2008-07-23 | 上海理工大学 | Interactive advertisement system |
CN101198018A (en) * | 2007-12-29 | 2008-06-11 | 腾讯科技(深圳)有限公司 | Method for implementing television advertisement service and advertisement server |
CN201191487Y (en) * | 2008-05-12 | 2009-02-04 | 肖江 | Small and medium sized liquid crystal advertisement machine applied under advertisement environment |
CN101588258A (en) * | 2008-05-19 | 2009-11-25 | 华为技术有限公司 | Information uploading method and system |
CN201563196U (en) * | 2009-11-18 | 2010-08-25 | 吉林大元电子科技有限公司 | Video e-network visual information terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331207A (en) * | 2016-03-21 | 2017-01-11 | 北京华盛普讯技术股份有限公司 | Android system-based multiple-IP Addresses setting method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN204066386U (en) | A kind of Multifunctional bus multimedia machine system | |
CN104299540A (en) | Advertisement interactive playing system and advertisement player terminals thereof | |
CN204390685U (en) | The interactive network formula advertisement machine that a kind of three screen displays are shown | |
CN101188702B (en) | A weather forecast service system based on TV | |
TWM577541U (en) | System for interactive selection and display of digital contents at view's interest | |
WO2007050918A3 (en) | Interactive entertainment device | |
CN201655249U (en) | Integrated audio/video controller for LED display | |
CN104427392A (en) | Multi-screen interactive control method and its application | |
CN103838158A (en) | LED full-color display screen system controlled through smart phone | |
CN102306237A (en) | Internet-based interactive digital media terminal device | |
CN103067234A (en) | Identification and discovery method and system of intelligent device under heterogeneous network | |
US20160132086A1 (en) | Display device and display system | |
CN203104515U (en) | Image sharing system among intelligent terminal equipment | |
CN102843317B (en) | electronic billboard system | |
TWM508813U (en) | Signal-transmitted device for energy conservation and a system thereof | |
CN202120582U (en) | Image display system with multiple image output devices | |
TW201328330A (en) | A portable electronic device for wirelessly transmitting images | |
CN203931446U (en) | A kind of novel advertisement player | |
CN206574065U (en) | A kind of interactive digital signage system | |
CN102122471A (en) | Advertising player system for remotely monitoring and implementing synchronous advertising content playback function | |
CN101794539A (en) | Digital photo frame and digital photo frame interactive system | |
CN220307259U (en) | A kind of supply and demand information display screen | |
CN207503610U (en) | A kind of interactive intelligent lamp box | |
CN101727701B (en) | Multimedia self-service changing, gambling and donating system | |
CN210575019U (en) | Advertisement playing equipment based on elevator internet of things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120104 |