# \#socket

**URL:** https://forums.digi.com/tag/socket/50.md

[Latest](https://forums.digi.com/latest.md) · [Categories](https://forums.digi.com/categories.md) · [Tags](https://forums.digi.com/tags.md)

---

## [Socket for SMD XBee3 MMT?](https://forums.digi.com/t/socket-for-smd-xbee3-mmt/20838)

<div class="topic-metadata">

**Author:** [@william.galvis](https://forums.digi.com/u/william.galvis)\
**Replies:** 3\
**Last updated:** [April 9, 2024, 3:26pm UTC](https://forums.digi.com/t/socket-for-smd-xbee3-mmt/20838 "2024-04-09T15:26:14Z")

</div>

i am looking for a spring socket for xbee 3 MMT device, is something like this https://www.digikey.com/products/en?keywords=76002056 but with 1.2mm pitch someone knows where I can buy it, or the order number? Thanks

---

## [TCP/IP Socket "Time Wait"   issue](https://forums.digi.com/t/tcp-ip-socket-time-wait-issue/23102)

<div class="topic-metadata">

**Author:** [@dbrah](https://forums.digi.com/u/dbrah)\
**Replies:** 1\
**Last updated:** [December 21, 2022, 11:28am UTC](https://forums.digi.com/t/tcp-ip-socket-time-wait-issue/23102 "2022-12-21T11:28:31Z")

</div>

Coming across an issue where having used up 127 socket then starting again from 0 (lower number) causes Time-Wait issue. When this happens socket is not available until sometime (about 30 to 40 sec). This is how I’m ope…

---

## [How to use urequests to post nonblocking data?](https://forums.digi.com/t/how-to-use-urequests-to-post-nonblocking-data/23195)

<div class="topic-metadata">

**Author:** [@vu2712](https://forums.digi.com/u/vu2712)\
**Replies:** 2\
**Last updated:** [August 11, 2022, 12:33pm UTC](https://forums.digi.com/t/how-to-use-urequests-to-post-nonblocking-data/23195 "2022-08-11T12:33:38Z")

</div>

I’m using urequests.py micropython library to post traffic on Xbee Cellular LTE Cat1 module. I find that urequests.py is blocking, but would like to make it nonblocking. Digging into the library, I found that the socke…

---

## [How many bytes can xbee transmit method send?](https://forums.digi.com/t/how-many-bytes-can-xbee-transmit-method-send/22779)

<div class="topic-metadata">

**Author:** [@ZoyaAva](https://forums.digi.com/u/ZoyaAva)\
**Replies:** 1\
**Last updated:** [November 10, 2021, 1:34pm UTC](https://forums.digi.com/t/how-many-bytes-can-xbee-transmit-method-send/22779 "2021-11-10T13:34:11Z")

</div>

Hi! I am using Xbee 3 RF Zigbee module and do its programming with Micropython , I have designed a file which has data and I try to send it wirelessly by Xbee transmit way. So here I want to ask through this transmit m…

---

## [Extended udp sockets only send at max 512 bytes](https://forums.digi.com/t/extended-udp-sockets-only-send-at-max-512-bytes/22357)

<div class="topic-metadata">

**Author:** [@mschmeisser](https://forums.digi.com/u/mschmeisser)\
**Replies:** 3\
**Last updated:** [April 22, 2021, 4:41pm UTC](https://forums.digi.com/t/extended-udp-sockets-only-send-at-max-512-bytes/22357 "2021-04-22T16:41:57Z")

</div>

I create am trying to receive large udp payloads, however the 0xCE api frame only ever has up to 512 bytes. Socket creation process: Create new UDP socket with api frame 0x40 Bind socket to port 4445 with frame 0x46 w…

---

## [Python xbee node to\_socket\_addr() method returning too many/zero-value fields](https://forums.digi.com/t/python-xbee-node-to-socket-addr-method-returning-too-many-zero-value-fields/22053)

<div class="topic-metadata">

**Author:** [@starfish](https://forums.digi.com/u/starfish)\
**Replies:** 2\
**Last updated:** [December 21, 2020, 9:30am UTC](https://forums.digi.com/t/python-xbee-node-to-socket-addr-method-returning-too-many-zero-value-fields/22053 "2020-12-21T09:30:16Z")

</div>

Hi, Trying to make some sense of why I’m not able to communicate with devices. (This is after disabling xbgw\_main.py so I can muck around in the REPL.) \>\>\> n \>\>\> n.profile\_id 49413 \>\>\> n.to\_socket\_addr() (‘\[00:13:…

---

## [XBee3 LTE-M/NB-IoT Listener socket closed shortly after creating listener socket](https://forums.digi.com/t/xbee3-lte-m-nb-iot-listener-socket-closed-shortly-after-creating-listener-socket/21742)

<div class="topic-metadata">

**Author:** [@DonaldB](https://forums.digi.com/u/DonaldB)\
**Replies:** 6\
**Last updated:** [September 10, 2020, 10:33am UTC](https://forums.digi.com/t/xbee3-lte-m-nb-iot-listener-socket-closed-shortly-after-creating-listener-socket/21742 "2020-09-10T10:33:17Z")

</div>

I have been testing the XBee3 LTE-M/NB-IoT with incoming TCP connections and I have been seeing some strange behaviour when using extended socket frames. I create a socket using the Socket Create frame and then set it t…

---

## [How do I stop many GP socket connected to my Cellular TCP/IP address?](https://forums.digi.com/t/how-do-i-stop-many-gp-socket-connected-to-my-cellular-tcp-ip-address/20164)

<div class="topic-metadata">

**Author:** [@Desmogger](https://forums.digi.com/u/Desmogger)\
**Replies:** 6\
**Last updated:** [May 21, 2019, 8:10am UTC](https://forums.digi.com/t/how-do-i-stop-many-gp-socket-connected-to-my-cellular-tcp-ip-address/20164 "2019-05-21T08:10:50Z")

</div>

I thought my two lines of Firewall code were supposed to stop any incoming hits or login attempts except from our server in the lab and my actual PC in my cube with the following 2 lines of firewall code pass in break e…

---

## [Sending Hex or Dec commands to DigiOne SP via socket](https://forums.digi.com/t/sending-hex-or-dec-commands-to-digione-sp-via-socket/20400)

<div class="topic-metadata">

**Author:** [@ricardo.carvalho](https://forums.digi.com/u/ricardo.carvalho)\
**Replies:** 0\
**Last updated:** [April 9, 2019, 11:37am UTC](https://forums.digi.com/t/sending-hex-or-dec-commands-to-digione-sp-via-socket/20400 "2019-04-09T11:37:38Z")

</div>

I have DigiOne SP connected to a digital length gauge via serial port. Serial port is configured according to the length gauge’s specs. I need to send a decimal or hexadecimal command to it via socket, however no matter…

---

## [alert by email dont work](https://forums.digi.com/t/alert-by-email-dont-work/19813)

<div class="topic-metadata">

**Author:** [@andresquispe](https://forums.digi.com/u/andresquispe)\
**Replies:** 1\
**Last updated:** [August 28, 2018, 3:46am UTC](https://forums.digi.com/t/alert-by-email-dont-work/19813 "2018-08-28T03:46:44Z")

</div>

my log: 14:07:00, 24 Aug 2018,code:20 reason:2,SMTP err ,Socket err 14:06:00, 24 Aug 2018,code:17 reason:0,SMTP req by SMTP email event.eml

---

## [xlr pro ethernet setup](https://forums.digi.com/t/xlr-pro-ethernet-setup/18566)

<div class="topic-metadata">

**Author:** [@vbplaya](https://forums.digi.com/u/vbplaya)\
**Replies:** 1\
**Last updated:** [July 27, 2017, 11:24am UTC](https://forums.digi.com/t/xlr-pro-ethernet-setup/18566 "2017-07-27T11:24:26Z")

</div>

We purchased a pair of XLR PRO radios and I am looking for information on how to set them up to communicate through the Ethernet ports. There is plenty of info on how to setup for serial comms but not so much for UDP or…

---

## [How to use xbee socket design in my product ?](https://forums.digi.com/t/how-to-use-xbee-socket-design-in-my-product/18477)

<div class="topic-metadata">

**Author:** [@mika888](https://forums.digi.com/u/mika888)\
**Replies:** 1\
**Last updated:** [June 30, 2017, 11:23am UTC](https://forums.digi.com/t/how-to-use-xbee-socket-design-in-my-product/18477 "2017-06-30T11:23:00Z")

</div>

I would like to know if it is possible to design a product (a board) with xbee socket where I can plug xbee card ? If so is there a cost and can I use “xbee compatible” or “xbee ready” notification on my product ? All of…

---

## [socket programming in linux c](https://forums.digi.com/t/socket-programming-in-linux-c/17926)

<div class="topic-metadata">

**Author:** [@komal\_patil](https://forums.digi.com/u/komal_patil)\
**Replies:** 1\
**Last updated:** [January 23, 2017, 12:58pm UTC](https://forums.digi.com/t/socket-programming-in-linux-c/17926 "2017-01-23T12:58:37Z")

</div>

hello I have made a chat client in linux using socket, and i wish to destroy the connection completely. Following is the relevant portions of the code: #include #include #include #include #include #include #inclu…

---

## [digi transport serial to socket buffer](https://forums.digi.com/t/digi-transport-serial-to-socket-buffer/17907)

<div class="topic-metadata">

**Author:** [@jserink](https://forums.digi.com/u/jserink)\
**Replies:** 0\
**Last updated:** [January 17, 2017, 7:17am UTC](https://forums.digi.com/t/digi-transport-serial-to-socket-buffer/17907 "2017-01-17T07:17:06Z")

</div>

hi all: the wr44 has a serial advanced setting called ‘forwarding delay’ which is the time after which the last character received on the serial port the data buffer will be forwarded to the tcp stack. it works this way…

---

## [What is the meaning of TCP Server Socket Timeout parameter](https://forums.digi.com/t/what-is-the-meaning-of-tcp-server-socket-timeout-parameter/16169)

<div class="topic-metadata">

**Author:** [@jcalderon](https://forums.digi.com/u/jcalderon)\
**Replies:** 1\
**Last updated:** [January 29, 2016, 1:06pm UTC](https://forums.digi.com/t/what-is-the-meaning-of-tcp-server-socket-timeout-parameter/16169 "2016-01-29T13:06:04Z")

</div>

On xbee WiFi there is a parameter called TCP Server Socket Timeout. I suppose that if a TCP socket connection is initiated by the client, then is no message is received after timeout the socket is closed, am I right?.

---

## [Testing XBee S1 with DigiMesh firmware and Python](https://forums.digi.com/t/testing-xbee-s1-with-digimesh-firmware-and-python/15651)

<div class="topic-metadata">

**Author:** [@forcel96](https://forums.digi.com/u/forcel96)\
**Replies:** 7\
**Last updated:** [December 22, 2015, 10:42pm UTC](https://forums.digi.com/t/testing-xbee-s1-with-digimesh-firmware-and-python/15651 "2015-12-22T22:42:58Z")

</div>

I currently have two Raspberry Pis connected to XBee S1 modules with the DigiMesh firmware, though I plan on expanding the network to include more RPis. I have configured and tested them in XCTU and they appear to be con…

---

## [why do I get a NameError: name 'AF\_XBEE' is not defined](https://forums.digi.com/t/why-do-i-get-a-nameerror-name-af-xbee-is-not-defined/14624)

<div class="topic-metadata">

**Author:** [@Mishka201](https://forums.digi.com/u/Mishka201)\
**Replies:** 3\
**Last updated:** [November 29, 2015, 8:43am UTC](https://forums.digi.com/t/why-do-i-get-a-nameerror-name-af-xbee-is-not-defined/14624 "2015-11-29T08:43:11Z")

</div>

I am trying to setup a local Digi Python environment to run my unit tests locally. Here is the quick summary of my steps: $ virtualenv digiTestEnv $ source digiTestEnv/bin/activate $ digiTestEnv/bin/pip install xbee e…

---

## [XBee WiFi - client comms socket timeout period](https://forums.digi.com/t/xbee-wifi-client-comms-socket-timeout-period/14859)

<div class="topic-metadata">

**Author:** [@mike.mccusker](https://forums.digi.com/u/mike.mccusker)\
**Replies:** 4\
**Last updated:** [July 10, 2015, 1:38pm UTC](https://forums.digi.com/t/xbee-wifi-client-comms-socket-timeout-period/14859 "2015-07-10T13:38:50Z")

</div>

Hi, I have the XBee S6B setup to act as a tcp client in API mode. It connects to a server on a port specified in the frame and sends its data just fine. The remote server sends a response back down the same socket the …

---

## [NET+OS  Socket SO\_LINGER](https://forums.digi.com/t/net-os-socket-so-linger/14274)

<div class="topic-metadata">

**Author:** [@gavello](https://forums.digi.com/u/gavello)\
**Replies:** 2\
**Last updated:** [January 30, 2015, 8:19am UTC](https://forums.digi.com/t/net-os-socket-so-linger/14274 "2015-01-30T08:19:39Z")

</div>

I have frequent socket.error: \[Errno 24\] Too many open files All the sockets are closed using closesocket function; Linger? When closesocket is call it will not return until all queued messages for the socket have b…

---

## [non blockingsockets on open](https://forums.digi.com/t/non-blockingsockets-on-open/14244)

<div class="topic-metadata">

**Author:** [@gavello](https://forums.digi.com/u/gavello)\
**Replies:** 3\
**Last updated:** [January 29, 2015, 12:05pm UTC](https://forums.digi.com/t/non-blockingsockets-on-open/14244 "2015-01-29T12:05:47Z")

</div>

I have an appication that needs to open a tcp socket the problem is that if the address provided is not reachable the open function wait for too long before returning the error code. to speed up the process I usually …

---

## [ConnectPort X2D receives frames from other radios but the other radios can not receive X2's transmission back](https://forums.digi.com/t/connectport-x2d-receives-frames-from-other-radios-but-the-other-radios-can-not-receive-x2s-transmission-back/14154)

<div class="topic-metadata">

**Author:** [@dstahulak](https://forums.digi.com/u/dstahulak)\
**Replies:** 1\
**Last updated:** [January 14, 2015, 5:29pm UTC](https://forums.digi.com/t/connectport-x2d-receives-frames-from-other-radios-but-the-other-radios-can-not-receive-x2s-transmission-back/14154 "2015-01-14T17:29:44Z")

</div>

I currently have my connectport x2d programmed to receive a frame and then reply to the sender of the frame. The x2 receives every packet completely fine and then supposedly replies to the sender but my sender never gets…

---

## [tcp socket on portserver ts 16](https://forums.digi.com/t/tcp-socket-on-portserver-ts-16/13857)

<div class="topic-metadata">

**Author:** [@neal](https://forums.digi.com/u/neal)\
**Replies:** 2\
**Last updated:** [November 5, 2014, 10:19am UTC](https://forums.digi.com/t/tcp-socket-on-portserver-ts-16/13857 "2014-11-05T10:19:08Z")

</div>

PortSever TS 16 ( PN 50000854 , SN W15170245 ) Solaris 10 on X86 ( HP DL 160 ). This is a question not an issue. Our software use the port as a normal serial comm. port, that is we open, set up env. Ioctl() like bits/…

---

## [Every time a Zigbee module joins the ConnectPort X2 initiated Zigbee network I receive a packet that was not sent.](https://forums.digi.com/t/every-time-a-zigbee-module-joins-the-connectport-x2-initiated-zigbee-network-i-receive-a-packet-that-was-not-sent/13135)

<div class="topic-metadata">

**Author:** [@mdehoogh](https://forums.digi.com/u/mdehoogh)\
**Replies:** 1\
**Last updated:** [August 11, 2014, 6:55am UTC](https://forums.digi.com/t/every-time-a-zigbee-module-joins-the-connectport-x2-initiated-zigbee-network-i-receive-a-packet-that-was-not-sent/13135 "2014-08-11T06:55:20Z")

</div>

Without going into much detail now: I’m using a ConnectPort X2 to receive fixed-size packets from home grown sensor devices configured as Zigbee end device and Python code using a single Zigbee socket to receive and pro…

---

## [How to connect a Digi XBee 868LP to a breadboard?](https://forums.digi.com/t/how-to-connect-a-digi-xbee-868lp-to-a-breadboard/12683)

<div class="topic-metadata">

**Author:** [@YoSuk](https://forums.digi.com/u/YoSuk)\
**Replies:** 1\
**Last updated:** [March 20, 2014, 2:50pm UTC](https://forums.digi.com/t/how-to-connect-a-digi-xbee-868lp-to-a-breadboard/12683 "2014-03-20T14:50:50Z")

</div>

I want to connect the XBee 868LP to a breadboard, but i can’t see to find the right contact. Does anyone know where i can get hold of a socket for the XBee 868LP?

---

## [Xbee sockets 16-bit addressing](https://forums.digi.com/t/xbee-sockets-16-bit-addressing/11775)

<div class="topic-metadata">

**Author:** [@atriaka](https://forums.digi.com/u/atriaka)\
**Replies:** 3\
**Last updated:** [September 23, 2013, 4:05pm UTC](https://forums.digi.com/t/xbee-sockets-16-bit-addressing/11775 "2013-09-23T16:05:30Z")

</div>

Hi, I am trying to send a message to a remote device using its short address. According to the documentation of “XBee Extensions to the Python Socket API”, to send a message using a short address the address must be of …

---

## [Has anyone managed to get the 9215 to receive more than 8192 bytes via UDP?](https://forums.digi.com/t/has-anyone-managed-to-get-the-9215-to-receive-more-than-8192-bytes-via-udp/11926)

<div class="topic-metadata">

**Author:** [@david.lockyer](https://forums.digi.com/u/david.lockyer)\
**Replies:** 8\
**Last updated:** [September 18, 2013, 5:54am UTC](https://forums.digi.com/t/has-anyone-managed-to-get-the-9215-to-receive-more-than-8192-bytes-via-udp/11926 "2013-09-18T05:54:29Z")

</div>

Hi, I am using NET+OS 7v5 and trying to receive \> 8192 bytes of data via UDP. Despite setting the socket options: socket\_optionLen = sizeof(ulSocket\_option); result = getsockopt(testSocket, SOL\_SOCKET, SO\_RCVBUF, (…

---

## [Python example "Hello world", how does it work?](https://forums.digi.com/t/python-example-hello-world-how-does-it-work/11497)

<div class="topic-metadata">

**Author:** [@AlexSong](https://forums.digi.com/u/AlexSong)\
**Replies:** 1\
**Last updated:** [June 7, 2013, 1:25pm UTC](https://forums.digi.com/t/python-example-hello-world-how-does-it-work/11497 "2013-06-07T13:25:20Z")

</div>

Hello everyone, I am a new beginer with Digi ESP. I am trying to do a simple test using ESP python sample XbeeHello.py to establish communication between two ConnectPort Xfamily devices. As wirten from the Python Progr…

---

## [ConnectPort X4 - Python socket.send() returns saying it sent data but hasn't](https://forums.digi.com/t/connectport-x4-python-socket-send-returns-saying-it-sent-data-but-hasnt/11440)

<div class="topic-metadata">

**Author:** [@KBelisle](https://forums.digi.com/u/KBelisle)\
**Replies:** 1\
**Last updated:** [April 30, 2013, 1:25pm UTC](https://forums.digi.com/t/connectport-x4-python-socket-send-returns-saying-it-sent-data-but-hasnt/11440 "2013-04-30T13:25:14Z")

</div>

I have a socket in python which I use to connect to a remote server over the cellular connection. However, if the cell connection drops it takes 10 min for the socket to notice - 10 minutes during which the socket still …

---

## [10 minute socket timeout?](https://forums.digi.com/t/10-minute-socket-timeout/4431)

<div class="topic-metadata">

**Author:** [@egawtry](https://forums.digi.com/u/egawtry)\
**Replies:** 4\
**Last updated:** [November 18, 2009, 5:13pm UTC](https://forums.digi.com/t/10-minute-socket-timeout/4431 "2009-11-18T17:13:31Z")

</div>

I am getting a 10 minute (actually 9:59) timeout on a socket connection. Is this something built into NetOS or some other issue? Has anyone seen this before? I do not get this on listening sockets, only active sockets…

---

## [send() trashing data](https://forums.digi.com/t/send-trashing-data/3589)

<div class="topic-metadata">

**Author:** [@egawtry](https://forums.digi.com/u/egawtry)\
**Replies:** 4\
**Last updated:** [August 15, 2009, 4:53pm UTC](https://forums.digi.com/t/send-trashing-data/3589 "2009-08-15T16:53:56Z")

</div>

I am reading a file and writing the contents to a port using send(). The data is corrupted - missing data on the start and extra junk on the end. Here is my code, could someone tell me what I am doing wrong? char buff…

[Next page](https://forums.digi.com/tag/socket/50.md?match_all_tags=true&page=1&tags%5B%5D=socket)
