Re: [twsocket] PCSensor "server"/ Simple client-server-SOLVED!

2011-09-23 Thread TK Boyd
Hurrah! Thank you everyone! The ICS demo "CliDemo1" did the job for me!! But I never would have got all the parts of the puzzle assembled without your help... There was a lot more to get right than just deciding which demo had the right elements. Now I can move forward with helping some good e

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread Wilfried Mestdagh
Hi, > Would the demo "Client5: A basic client program using TWSocket > component." seem to you who know like an alternative good starting > point for my efforts? The good starting point is: do not copy! - Study example; then start from nothing - zero - null ! -- mvg, Wilfried http://www.mestdag

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread TK Boyd
Angus, Wilfried... Many thanks! > You need to develop a simple TCP client program using TWSocket... Thank you for pointing me at the right demo to work from Oh! And in looking around for that, I found the link "Click here for a primer text about TCP..." Apologies, everyone, for not seeing

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread Angus Robertson - Magenta Systems Ltd
> Not a WEB server, not a TELNET server, but still a > server, if only a simple one. > > HttpTst, and the program I derived from it, as I understand things, > sends a "proper" HTTP "Get" to the system of your choice. Your box is almost certainly both a web server (how you got and set configura

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread Wilfried Mestdagh
Hi, > to the target server, I need to send just two bytes, 0xBB and > 0x83 You only need the HttpCli if you use HTTP protocol. Your device does not. It uses his own protocol (receiving 2 bytes - sending results). So you need to develop a simple TCP client program using TWSocket. If you need to s

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-23 Thread TK Boyd
Much progress since I last wrote... thank you Good People at TWSocket for breaking down some of the brick walls for me! >From previous work with ICS, I have a small program, a lightly adapted version of the ICS HttpTst. And I've further refined my grasp of how to properly phrase my question. I

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread Dod
Hello, As this subject is OT I propose you to continue this on my personnal mail instead of this mailing list. regards. TB> Thank you, Dod... TB> I think someone else had told me to use WinPCap under my TB> SmartSniff... but I had forgotten. TB> Sure enough, added WinPCap (I'm on an XP, SP3 m

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread TK Boyd
Thank you, Dod... I think someone else had told me to use WinPCap under my SmartSniff... but I had forgotten. Sure enough, added WinPCap (I'm on an XP, SP3 machine), and now I see something that either wasn't there before, or I was overlooking it. When I use the software supplied with my TEMPe

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread Dod
Hello, One thing about SmartSniff (I use it for years), take care to use it with WinPCap as it may miss ingoing or outgoing datas depending your WinOS version. Also if you can't connect to IP addr of the device then it may not use TCP but UDP, this is quite usual with embedded devices. regar

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread TK Boyd
Ah ha! Thank you Angus and Piotr... Many "happy" tens of minutes spent "playing" with the excellent suggestions. SmartSniffer Wonderful! Fascinating! Telnet... Ah yes, the "good old days"... I've burned hours with Telnet before, given my limited grasp of what I'm doing. (Last time it was

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread Angus Robertson - Magenta Systems Ltd
> With software supplied with the device, from a Windows PC connected > to the same LAN as the TEMPerLAN, I can "send a command" to it. If > the command is BB 82, I get back a short string of ASCII with some > data from the device. > device ipaddress:192.168.0.241 > device netmask:255.255.255.0

Re: [twsocket] PCSensor "server"/ Simple client-server

2011-09-22 Thread Piotr Dałek
Hello! > With software supplied with the device, from a Windows PC connected > to the same LAN as the TEMPerLAN, I can "send a command" to it. If > the command is BB 82, I get back a short string of ASCII with some > data from the device. (Temperatures seen by some attached sensors, > but that