1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| package urt;
| import BaoWen.Urt_7000_port;
| import PbuliClass.ShowMessage;
| import person.Person;
| import person.person_Dell;
|
| /**×¢£ºµØÖ·ºÍÊý¾Ý¶¼ÊÇ10½øÖÆ¡£µØÖ·ºÍUWB±êǩһÑù
| * ¶Áд²ÎÊý
| * ×¢£ºµØÖ·ºÍÊý¾Ý¶¼ÊÇ10½øÖÆ¡£µØÖ·ºÍUWB±êǩһÑù
| * ¢Ù¶Á²ÎÊý
| * Ö¸Á$readpara,É豸ID£¬µØÖ·,³¤¶È
| * ʾÁУº$readpara,2011,01,10
| * »Ø¸´£ºreplypara,Êý¾Ý,Êý¾Ý.....
| * ʾÀý£º
| * $replypara,2011,299,8209,500,10,0,65505,1,0,0,9999
|
| */
| public class Urt_read {
|
| /**¶ÁÈ¡±êÇ©µÄÅäÖÃÐÅÏ¢*/
| public static void read_tag(String tagid,String canshudizhi,String lenth,int datafrom) {
| Person person=person_Dell.get_Person(tagid);
| if(person==null) {
| return;
| }else {
| String ip=person.getBaoliu8();
| String port=person.getBaoliu9();
| if(port.length()>2) {
| String data="$readpara,"+tagid+","+canshudizhi+","+lenth;
| int size=data.getBytes().length;
| Urt_7000_port.udp_out(data.getBytes(),size, ip, port,tagid,data);
| if(datafrom==1) {
| ShowMessage.zidingyi("¶ÁÈ¡ÐÅÏ¢ÒÑÏ·¢³É¹¦");
| }
| }
| }
| }
| }
|
|