Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query

2018-04-09 Thread Erik Ekman
Can you record it with wireshark and send a pcap file?

/Erik

On 9 April 2018 at 10:20, antonio  wrote:

> HI Simon,
>
> Let me see if I can be clear.
>
> I have an application using loopback interface. The goal is to test mDNS
> functions and observe queries and responses.,
>
> a) My application first tries a DNS_RRTYPE_A query, and I get a response.
> here there is no problem.
>
> b) The problem happens whenever I send a DNS_RRTYPE_SRV query. Here, I
> NEVER
> get an answer, because, the receiver is unable to compose and send back an
> answer.
>
> Debugging the code, I realize that the function mdns_add_srv_answer calls
> mdns_add_answer and later function never returns :( .
>
> I hope my explanation clarifies you.
>
> Thanks in advance.
>
>
>
>
>
> --
> Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Tunnel solution for HTTP server expose to Internet

2018-04-09 Thread Sergio R. Caprile
Summing up:
Yes, you can avoid writing apps, but you have to host a web page
somewhere. Either a CGI on the server or a javascript on the browser
will connect to the database (or the broker if you just need realtime
and no history, that is: no persistence)

No, some of these services are free for low traffic volumes. Heroku is.
Eclipse runs a free MQTT broker (but it does not provide persistence, if
you need it). I don't know of any free hosting with db, btw.

And yes, you have to think about privacy. (good) Cloud services can
provide certificate based data reading, with Heroku you write your app,
with hosting a server+database, well, you manage db passwords and user
accounts.


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Telnet with RFC2217 on lwip?

2018-04-09 Thread Dave Nadler

lwip newbie here. I'm creating a small sensor product that needs to be
accessed remotely over IP, and ideally as a simulated serial port on
Windows and linux hosts.

Can anyone recommend an open-source implementation of telnet
(ideally with RFC2217) that runs happily on lwip?

Thanks!
Best Regards, Dave

--
Dave Nadler, USA East Coast voice (978) 263-0097, d...@nadler.com, Skype
 Dave.Nadler1

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Tunnel solution for HTTP server expose to Internet

2018-04-09 Thread Giuseppe Modugno

Il 09/04/2018 15:00, Sergio R. Caprile ha scritto:

My personal opinion follows:

Do you absolutely need HTTP ?
As long as we don't have IPv6 (and fixed addresses), we have to go DDNS
and port forwarding. Yes, this requires an end user holding a PhD or at
least the techie ones. So... the whole purpose of "the cloud" probably
started with this,

Yes, I agree with you.


and so many developers resort to publishing on some
publisher/subscriber architecture and either provide a web frontend
based on a subscriber backend or a subscriber based smartphone
application (or computer program). Enter MQTT, available in your lwIP repo.
Do you absolutely need HTTP ?
No, I don't need absolutely HTTP, but HTTP allows the end user to use a 
standard Web browser (and allow me to avoid writing an app for Android, 
iOS, ...).



An ellaborated explanation is a bit off-topic (and extense).
You can do this with a hosted server and database for one or a few
devices. You should also consider Heroku. For lots of devices, a cloud
service like Amazon AWS, Google Cloud, that bunch of money makers based
on Seattle, or even Adafruit is probably a better idea.
First of all, many of these services aren't free. And I admit my 
ignorance around those topics. For example, is it possible to avoid 
writing an app for smartphone? I don't know.


Moreover, are the status of all my devices stored somewhere in the 
cloud? In this case, I should think of privacy, security, attacks from 
hackers... it's another job.



For remote control, however, the MQTT way is a bit more involved, so for
a verbose interface you would probably want to run a more friendly
protocol on top of that.

Everything depends on what you need to do and how you want to interact
with your devices.

Thank you for your suggestions... I'll study a little more on MQTT and 
related scenarios


___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Tunnel solution for HTTP server expose to Internet

2018-04-09 Thread Sergio R. Caprile
My personal opinion follows:

Do you absolutely need HTTP ?
As long as we don't have IPv6 (and fixed addresses), we have to go DDNS
and port forwarding. Yes, this requires an end user holding a PhD or at
least the techie ones. So... the whole purpose of "the cloud" probably
started with this, and so many developers resort to publishing on some
publisher/subscriber architecture and either provide a web frontend
based on a subscriber backend or a subscriber based smartphone
application (or computer program). Enter MQTT, available in your lwIP repo.
Do you absolutely need HTTP ?

An ellaborated explanation is a bit off-topic (and extense).
You can do this with a hosted server and database for one or a few
devices. You should also consider Heroku. For lots of devices, a cloud
service like Amazon AWS, Google Cloud, that bunch of money makers based
on Seattle, or even Adafruit is probably a better idea.

For remote control, however, the MQTT way is a bit more involved, so for
a verbose interface you would probably want to run a more friendly
protocol on top of that.

Everything depends on what you need to do and how you want to interact
with your devices.

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] help with mDNS sending a DNS_RRTYPE_SRV query

2018-04-09 Thread antonio
HI Simon, 

Let me see if I can be clear. 

I have an application using loopback interface. The goal is to test mDNS
functions and observe queries and responses.,

a) My application first tries a DNS_RRTYPE_A query, and I get a response.
here there is no problem.

b) The problem happens whenever I send a DNS_RRTYPE_SRV query. Here, I NEVER
get an answer, because, the receiver is unable to compose and send back an
answer. 

Debugging the code, I realize that the function mdns_add_srv_answer calls
mdns_add_answer and later function never returns :( . 

I hope my explanation clarifies you.

Thanks in advance.





--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users