TCP String - M2M

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

TCP String - M2M

Rick Draper-2
Hi All,

 

I have an application where an IoT device is sending a string via TCP.  This
hits Apache but there is nothing passed to Lasso, likely because this is
missing headers and other stuff (excuse my lack of expertise in this area -
NB: If I call the URL with the applicable GET params via a browser, Lasso
cuts in as expected)

 

I need to have a Lasso based API handling data from the TCP string (there
will be many such calls per minute), and am wondering if anyone has any
experience with such things?

 

Any pointers would be sincerely appreciated.

 

Thanks and very best regards,

 

Rick


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: TCP String - M2M

Bil Corry-3
Hopefully you can specify the port for your IoT device.  Use the Lasso
networking tags to open a TCP listener on a unique port (e.g. 33555),
receive the string, and process it.


- Bil

On Sat, Jan 2, 2016 at 8:18 AM, Rick Draper <[hidden email]>
wrote:

> Hi All,
>
>
>
> I have an application where an IoT device is sending a string via TCP.
> This
> hits Apache but there is nothing passed to Lasso, likely because this is
> missing headers and other stuff (excuse my lack of expertise in this area -
> NB: If I call the URL with the applicable GET params via a browser, Lasso
> cuts in as expected)
>
>
>
> I need to have a Lasso based API handling data from the TCP string (there
> will be many such calls per minute), and am wondering if anyone has any
> experience with such things?
>
>
>
> Any pointers would be sincerely appreciated.
>
>
>
> Thanks and very best regards,
>
>
>
> Rick
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: TCP String - M2M

Rick Draper-2
Thanks very much, Bil.

That pointer has ben very helpful.

I am trying the example on lassoguide.com
(http://lassoguide.com/operations/protocols-pipes.html?highlight=listen#net_
tcp->listen) and can use the localhost connection on the machine,  but
cannot connect to it from another machine (connection refused).  

netstat -anp | grep <port>
tcp        0      0 0.0.0.0:<port>                0.0.0.0:*
LISTEN

I know that it is not a firewall issue, as I was connecting to the port when
I was trying to use Apache.

Any thoughts?

Thanks and very best regards,

Rick



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: TCP String - M2M

Ke Carlton-3
The "Simple Multi-Threaded Server" example is what you want to focus on.
It's fairly straight forward to create a custom server in Lasso.
On Sun, 3 Jan 2016 at 09:14 Rick Draper <[hidden email]> wrote:

> Thanks very much, Bil.
>
> That pointer has ben very helpful.
>
> I am trying the example on lassoguide.com
> (
> http://lassoguide.com/operations/protocols-pipes.html?highlight=listen#net_
> tcp-
> <http://lassoguide.com/operations/protocols-pipes.html?highlight=listen#net_tcp->>listen)
> and can use the localhost connection on the machine,  but
> cannot connect to it from another machine (connection refused).
>
> netstat -anp | grep <port>
> tcp        0      0 0.0.0.0:<port>                0.0.0.0:*
> LISTEN
>
> I know that it is not a firewall issue, as I was connecting to the port
> when
> I was trying to use Apache.
>
> Any thoughts?
>
> Thanks and very best regards,
>
> Rick
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: TCP String - M2M

Rick Draper-2
Thanks, Ke.

Oddly I can't get this to work on dev, but I do have it working on a
production server, which was the goal because the data is coming from
outside our network.  

Very best regards,

Rick

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Ke Carlton
Sent: Sunday, 3 January 2016 6:18 AM
To: [hidden email]
Subject: Re: TCP String - M2M

The "Simple Multi-Threaded Server" example is what you want to focus on.
It's fairly straight forward to create a custom server in Lasso.
On Sun, 3 Jan 2016 at 09:14 Rick Draper <[hidden email]> wrote:

> Thanks very much, Bil.
>
> That pointer has ben very helpful.
>
> I am trying the example on lassoguide.com (
> http://lassoguide.com/operations/protocols-pipes.html?highlight=listen
> #net_
> tcp-
> <http://lassoguide.com/operations/protocols-pipes.html?highlight=liste
> n#net_tcp->>listen) and can use the localhost connection on the
> machine,  but cannot connect to it from another machine (connection
> refused).
>
> netstat -anp | grep <port>
> tcp        0      0 0.0.0.0:<port>                0.0.0.0:*
> LISTEN
>
> I know that it is not a firewall issue, as I was connecting to the
> port when I was trying to use Apache.
>
> Any thoughts?
>
> Thanks and very best regards,
>
> Rick
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email] Official list
> archives available at http://www.lassotalk.com To unsubscribe, E-mail
> to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email] Official list archives
available at http://www.lassotalk.com To unsubscribe, E-mail to:
<[hidden email]>
Send administrative queries to  <[hidden email]>




#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: TCP String - M2M

Rick Draper-2
In reply to this post by Rick Draper-2
Having this example
(http://lassoguide.com/operations/protocols-pipes.html?highlight=listen#net_
tcp->listen ) working now begs some more questions.

Is there a way to identify and log the source IP address?

Very best regards,

Rick



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: TCP String - M2M

Ke Carlton-3
The method is: remoteAddress

On Sun, Jan 3, 2016 at 10:21 AM Rick Draper <[hidden email]>
wrote:

> Having this example
> (
> http://lassoguide.com/operations/protocols-pipes.html?highlight=listen#net_
> tcp-
> <http://lassoguide.com/operations/protocols-pipes.html?highlight=listen#net_tcp->>listen
> ) working now begs some more questions.
>
> Is there a way to identify and log the source IP address?
>
> Very best regards,
>
> Rick
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: TCP String - M2M

Rick Draper-2
Thanks, Ke.

You will have lots of fun cleaning up my proof of concept :-)  But I am
making progress and will hopefully have devices connecting to this today, in
early preparation for our presentation / demonstration on the 22nd.

Very best regards,

Rick

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Ke Carlton
Sent: Sunday, 3 January 2016 7:37 AM
To: [hidden email]
Subject: Re: TCP String - M2M

The method is: remoteAddress




#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: TCP String - M2M

Ke Carlton-3
Rewrite!

On Sun, Jan 3, 2016 at 11:13 AM Rick Draper <[hidden email]>
wrote:

> Thanks, Ke.
>
> You will have lots of fun cleaning up my proof of concept :-)  But I am
> making progress and will hopefully have devices connecting to this today,
> in
> early preparation for our presentation / demonstration on the 22nd.
>
> Very best regards,
>
> Rick
>
> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of Ke Carlton
> Sent: Sunday, 3 January 2016 7:37 AM
> To: [hidden email]
> Subject: Re: TCP String - M2M
>
> The method is: remoteAddress
>
>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>