Skip to main content
1-Visitor
November 12, 2020
Question

How to connect CCTV camera live streaming in thingworx mashup

  • November 12, 2020
  • 1 reply
  • 3670 views

Hi,

I have two questions,

1.    I am using Thingworx 9.0, I want to show live CCTV streaming on thingworx mashup how can I do that?

Please send me any architecture diagram to connect CCTV camera to thingworx.

Does anyone know how to work? Much appreciated.

2.    I have sensor data in the hex format which in the attachment file, I want to convert it into a readable format.

I have tried with some javascript program which is given below but it is giving me the wrong result please check attachment for output. please suggest

 var hex1 = HextData.toString();
	var str = '';
	for (var n = 0; n < hex1.length; n += 3) {
		str += String.fromCharCode(parseInt(hex1.substr(n, 6), 16));
	}
	var result = str;

Does anyone know how to work? Much appreciated.

1 reply

17-Peridot
November 19, 2020

@Suraj2692 ,

 

I took a look at your questions:

  1. CCTV is addressed by 
    Article - CS219644 Is it possible to stream an IP CCTV feed into ThingWorx?
    The short answer is no supported by composer.
  2. Hex data converted to string. I put the data into a hex to ascii conversion page and I did not get readable text. I may not understand what you trying to decode. This is what I see:
 
 

Peter

 

Suraj26921-VisitorAuthor
1-Visitor
November 20, 2020

Thanks for your reply

In the second question,

I have some hex data which was sent by my client and I received it from my end.I have to convert that hex data into a simple human-readable format( consider English).

Please check below hex data sent by the client.

55 55 00 5A 21 41 02 00 00 38 36 31 32 35 31 30 33 38 30 33 39 33 39 39 A5 08 D1 5D FC 2C 82 39 F9 6E 34 BF 14 B1 61 89 B5 E3 A4 2C 88 F4 A8 AA 0B 43 78 EE 7C 37 6A 94 27 A1 20 BF AF C7 3D F0 FE 25 B1 6D E7 4E F6 3A 35 3A D5 0F 91 83 0D 80 36 97 70 F6 DC E8 0A 81 AA AA

55 55 00 5A 21 41 02 00 00 38 36 31 32 35 31 30 33 38 30 33 39 33 39 39 A5 08 D1 5D FC 2C 82 39 F9 6E 34 BF 14 B1 61 89 B5 E3 A4 2C 88 F4 A8 AA 0B 43 78 EE 7C 37 6A 94 27 A1 20 BF AF C7 3D F0 FE 25 B1 6D E7 4E F6 3A 35 3A D5 0F 91 83 0D 80 36 97 70 F6 DC E8 0A 81 AA AA

UU *!A 861251038039399ûGæ¦l-*Rá-+ph顱¬¬
UU *!A 861251038039399ûGæ¦l-*Rá-+ph顱¬¬

 

how we can get proper data conversion so we can read the data what exactly it is.

please suggest

 

17-Peridot
November 23, 2020

@Suraj2692 ,

I am not sure I can assist with the translation you are requesting. The hex data which is being returned may not be ascii information. When I place the information in a web page which converts HEX to ASCII I get

 

"UUZ!A861251038039399¥Ñ]ü,‚9ùn4¿±a‰µã¤,ˆô¨ª Cxî|7j”'¡ ¿¯Ç=ðþ%±mçNö:5:Õ‘ƒ
€6—pöÜè
ªª"

 

which is similar to the strings displayed at the bottom of the hex data. When I look at the data a byte of "00" is sometimes to terminate a   string. If that is the case then the entire string is "UU"? If you know the format of the data, a translation might be possible. If you divide the HEX bytes into the proper groups then the values can be translated. The HEX bytes might represent values and not ASCII characters. If you know what is sending the HEX characters it may provide the description of the information. 

 

Hope that helps

Peter