sksjsj Posted June 5, 2019 Share Posted June 5, 2019 Hello everybody, I need some help in communicating between the PC and an evaluation unit. I have the following devices: 1.https: //www.ifm.com/us/en/product/DTE104 2. https://www.ifm.com/us/en/product/ANT513 I use autoit for a tracking software. The evaluation unit has a webpage where I can see the UID of the scanned tag, but I would need to improve the wait time, so that I can see directly the UID in my autoit GUI too. I tried with TCP / IP but I can't communicate with the ev.unit to send my data directly to the software. It is connected to PC via ethernet cable. Anyone else working with that and can give me some ideas? Thank you in advance! Link to comment Share on other sites More sharing options...
Nine Posted June 5, 2019 Share Posted June 5, 2019 5 hours ago, sksjsj said: The evaluation unit has a webpage where I can see the UID of the scanned tag, If so why don't you use IE UDF to access the webpage and read the UID from it ? sksjsj 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Sidley Posted June 5, 2019 Share Posted June 5, 2019 You could try capturing the packets and work from there, @FireFox has a UDF for this here. sksjsj 1 Link to comment Share on other sites More sharing options...
sksjsj Posted June 6, 2019 Author Share Posted June 6, 2019 That means the web page must always be active on all PCs where I have readers and that's not ok. I would prefer to be able to take UID directly "by cable" into my soft. I will try with UDF. For this I need just WinPcap driver ? Thank you both for the answer! Link to comment Share on other sites More sharing options...
Nine Posted June 6, 2019 Share Posted June 6, 2019 4 minutes ago, sksjsj said: That means the web page must always be active on all PCs where I have readers Nope you can start the web page (in your script) in hiding mode and close it after you have read all the info necessary. It would be lot more easy that way. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
sksjsj Posted June 6, 2019 Author Share Posted June 6, 2019 Yes, this is a good idea and can be done. Btw, i tried to use socket to take the UID. I searched and i figured out that sending this: TCPSend($iSocket, "RU_01") TCPSend($iSocket, @CRLF) to my evaluation unit with: Local $sIPAddress = "192.168.0.79" Local $iPort = 33000 it works and connects, but I can't see/receive the UID anyway. I put the code below. Thanks! tcp.txt Link to comment Share on other sites More sharing options...
argumentum Posted June 6, 2019 Share Posted June 6, 2019 3 hours ago, sksjsj said: to my evaluation unit with: Local $sIPAddress = "192.168.0.79" and in your code you have Local $sIPAddress = "192.168.0.79" ; This IP Address only works for testing on your own computer. and that is the IP of the unit, not your PC !! Use Local $sIPAddress = "0.0.0.0" to use any IP in your PC. If the unit server is HTTP, is all good to use TCP/IP, now, if is HTTPS, then you can not get the data other than via a browser, as in IE or WinHTTP. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
sksjsj Posted June 7, 2019 Author Share Posted June 7, 2019 The connection part is good, but for sure I miss something in the code Link to comment Share on other sites More sharing options...
sksjsj Posted June 7, 2019 Author Share Posted June 7, 2019 Hello everyone, I have solved the problem like in the picture. It looks like the message sent to the evaluation unit was not in the correct format. Thank you for your help and support! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now