LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2018, 02:46 PM   #1
dunn1013
LQ Newbie
 
Registered: Sep 2018
Posts: 2

Rep: Reputation: Disabled
Unhappy How to route IP traffic to a serial port connected to WiFi pass through device (Digi XBee)


I am working on an existing product that has wired ethernet port. But when product is installed in end customer application, they want WiFi connectivity. Do to the nature of the product (high power electrical), I cannot bring any electrical connection out of the box other than an antenna (which is isolated).

So what I am doing is trying to attach a Digi International XBee WiFi module to a serial port on the system, and then route the IP traffic over that serial port.

The XBee device simply takes the serial stream and encapsulates it into IP packets and sends them over the wifi to the associated AP. The reverse when receiving. The XBee gets it's IP address from DHCP of the AP.

Has anyone done anything like this? Any ideas?
 
Old 09-28-2018, 09:13 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,753

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by dunn1013 View Post
I am working on an existing product that has wired ethernet port. But when product is installed in end customer application, they want WiFi connectivity. Do to the nature of the product (high power electrical), I cannot bring any electrical connection out of the box other than an antenna (which is isolated).

So what I am doing is trying to attach a Digi International XBee WiFi module to a serial port on the system, and then route the IP traffic over that serial port. The XBee device simply takes the serial stream and encapsulates it into IP packets and sends them over the wifi to the associated AP. The reverse when receiving. The XBee gets it's IP address from DHCP of the AP. Has anyone done anything like this? Any ideas?
Yes, I've done something like this, but not serial. No idea what existing product you're working on, but if it already has an existing ethernet port, doing this over serial to wifi is going to add layers of complexity/problems to it. And it sounds like you're in an industrial setting...meaning that you'll need support/maintenance in the field that needs to be fairly easy.

Look for a wifi adapter that supports client mode, like this:
https://www.amazon.com/dp/B00TQEX8BO...v_ov_lig_dp_it

Have used them before to do EXACTLY what you're doing. You configure this little gadget to use DHCP (or static, whatever), and plug it into the wired ethernet port. Done. It comes up, grabs an address, and you're on the air, using the existing wired ethernet. As a bonus, it can be powered via USB; no external adapter needed. Did this for my Smartthings hub at the house, and at a few different client sites where the hardware wouldn't support wifi out of the box.

Cheap, easy to configure, and you can just send them out if they break. Swap units, and you're back in business.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet over Serial line (using XBee) Tonga Linux - Networking 3 12-30-2014 04:32 PM
[SOLVED] Serial terminal connected to USB Serial Port on Ubuntu 12.04 809areacode Linux - General 3 07-18-2013 10:06 PM
Specifying device to route traffic through; Or how to bind device to eth0 pgb205 Linux - Networking 1 07-29-2008 08:56 PM
route locally generated traffic to ip:port to localhost:port maenho Linux - Software 2 03-11-2005 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration