Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

TCP/IP Connection failed

Hello everybody, iam a beginner in Talend ESB.

 

I want to establish a TCP/IP connection to a Server. It's an RFID reader.

I have to send the reader an XML message via TCP / IP to a Host: "141.79.224.86" and a Port: 10001.

The XML message is called HostGreetings.

(<frame><cmd><id>1</id><hostGreetings><readerType>SIMATIC_RF680R</readerType><supportedVersions><version>V2.0</version><version>V2.1</version><version>V2.2</version></supportedVersions></hostGreetings></cmd></frame>)

After sending I have to get an answer. But that doesnt work.

 

My process is as follows:

 

0683p000009Lsi8.png

In the first step i send the whole code via tFileDelimited to the tSocketOutput (Client). This is working.

0683p000009Lsc8.png

The answer i can see only about wireshark i get one. But in Talend it does not show me.

0683p000009LsP9.png

Thats the mistake i get.

 

Does anybody know what i'm doing wrong?

 

Thanks in advance!!!!

 

Kind regards

Ao

Labels (2)
36 Replies
Anonymous
Not applicable
Author

With question 6 I meant have you tried moving the RFID device to your local network? You really need to do that or work on the local network that this device is on. The reason for this is that the VPN configuration is likely a cause, but we cannot confirm that unless you can prove it works without the VPN.

 

Another couple of things to think about since this only seems to receive messages back when you are running within your computer, do you have a firewall running on your machine? This could be blocking the returning messages.

Anonymous
Not applicable
Author

Why are you defining a different port? Are you saying the RFID randomly picks a different port to send back to?

Anonymous
Not applicable
Author

I tried it locally. This is the same as when i work over VPN. VPN is not the cause.

 

I deactivited all firewalls too. Unfortunately no success.

Anonymous
Not applicable
Author

I have an IP Address with a random port. I cant pin it down.

The RFID System receives the massage, he wants to send me the answer on the port where he got the message.

You can see that in Wireshark.

But i want that he doesnt answer me on tSocketOutput but on tSocketInput with a defined IP address and a defined port.

Anonymous
Not applicable
Author

You need to understand how your RFID device is working. It won't be a completely random port, there will be some logic to it. That logic needs to be understood before you get this to work.

 

This Talend question is solved though. You can now get a message out and a response back. The problem you have now is with your RFID device and understanding how it works. When you have the precise way in which that is expected to work, come back and post a question about that. 

Anonymous
Not applicable
Author

Iam sorry I didnt explain it well enough. Again...

 

I send a message to the RFID System (tSocketOutput) IP:141.79.224.86 / Port:10001

 

0683p000009LsWO.png

 

The RFID System wants to answer me. But never reach me!!!!!

 

Anonymous
Not applicable
Author

I understand that. But you said "I have an IP Address with a random port. I cant pin it down". You keep introducing more variables. If you send from IP 10.1.1.2 to IP 20.2.2.1 on port 1010, what port will IP 20.2.2.1 send the response message on? Port 1010?

If the above is the case, then you need to know if your VPN is preventing your RFID device from sending the message back to you. I am afraid I cannot do this for you. I can help you with Talend stuff, but you have SO many variables and are assuming that Talend is the cause. You need to eliminate all other potential variables and try to get it to work with Talend (as mentioned earlier, try with the RFID device on the same local area network as your machine and with a single IP address assigned to your machine), then move on to a more complex environment once that is shown to work. 
 

lojdr
Creator II
Creator II

Hi,

 

maybe I am wrong. Maybe I overlooked something, but have you tried to specify the bind address for tSocketInput? I see you have several IP addresses so it would be nice to define where to open the port...

0683p000009Ls1O.jpg

 

 

 

 

 

 

 

 

 

 

If you already discussed this option just skip my post.

 

Regards

Lojdr

Anonymous
Not applicable
Author

Ok an Other question maybe solves the problem..

Is it possible to bind the Port from which i am sending the request via tsocketoutput in the properties i could just set the port i am sending to but i want to set the Port i am sending from
Anonymous
Not applicable
Author

The tSocketOutput's port is the RFID's listening port. The tSocketImport's port is the machine's port that it needs to listen on. You need to know which port the RFID is listening on and which port it will send back to. This should either be documented by the RFID device's manufacturer or should be discoverable.

As I have said before, you need to simplify this first. You need to work with the RFID device on the same local area network as your machine. You need to remove any firewalls. You need to ensure that your machine only has one IP address and you need to make sure your port is free. Once that basic environment is set, then you can work on the Talend job without the possibility of other variables causing an issue. You also need to understand how the RFID device works. Does it receive on one port and respond on another, for example?