Forum Widgets
Latest Discussions
Netx Duo Question - NX_TCP_SOCKET and BSD fd_sets Functionality
Hi, I hope this is the correct place to ask this question. I'm looking at porting an existing application across to Duo, this app uses WEBSOCKETS/TLS/TCP within a BSD socket and makes use of the BSD fd_sets mechanism to detect receive data, ability to send data and loss of connection, sending multiple messages over a single socket. Using the Duo API's I need to use the NX_TCP_SOCKET based APIs, to gain WEBSOCKETS/TLS functionality but so far, I haven't spotted a bsd_fd_set equivalent mechanism for this socket type. Is there a similar feature available? The examples I've found don't persist a socket across multiple messages so don't need that feature. Any help/information on this appreciated. Many Thanks Waynewayne_ellisSep 12, 2025Copper Contributor40Views1like1CommentNetXDuo mDNS domain set issue
Hello, My issue is related to:- MCU: STM32H733 Middleware: Azure RTOS Middleware Component: NetxDuo (6.2.0) Addon: mDNS I am using Azure RTOS with NetxDuo, I implemented a secure https server in my device and implemented mDNS which was working very well for me till I required to change domain. I want to add a sub-domain like (myhostname.mysubdomain.local). In documentation it is stated that by default the domain is .local but can be changed using nx_mdns_domain_name_set API Now, I have implemented this API in my code like this: ``` status = nx_mdns_create(&mdns_instance, &ip_instance, &netxduo_packet_pool, MDNS_PRIORITY, mdns_thread_stack, sizeof(mdns_thread_stack), (UCHAR *)hostname, (VOID *)local_service_cache, sizeof(local_service_cache), (VOID *)peer_service_cache, sizeof(peer_service_cache), NX_NULL); if (status != NX_SUCCESS) { Error_Handler(); } status = nx_mdns_domain_name_set(&mdns_instance, "home"); status = nx_mdns_enable(&mdns_instance, PRIMARY_INTERFACE); ``` It returns success and according to the document I must be able to ping hostname.home but thats not the case not matter what I done it will be always accessible through hostname.local I checked the domain name buffer inside mdns_instance, its updated to home but even then changed domain is not accessible. Goal: To be able to add subdomain Bigger Picture: I want to use wild card while generating certificate and keys in alt name and CN so that same certificate can be used in many devices thats why I need subdomain as it allows wild card in *.example.local not in *.localfintisarJul 18, 2024Copper Contributor1.1KViews0likes0CommentsUSBX: hard fault after reading fx_directory_information_get
Hi team, I'm using stm32f746disco and trying to implement USBx as a host with AZURE RTOS. Everything goes well until I want to read the file size using the "fx_directory_information_get" function. The function runs without failure and returns the values correctly, but if I unplug the USB, the MCU goes to a hard fault. Questions: 1) Am I using the right function to read the file size? 2) Does it need to call any other function before or after "fx_directory_information_get" somehow to close or flush the media?Armin_hmJun 10, 2024Copper Contributor238Views0likes0CommentsAzure USBX hub issues with full speed devices
We have a project using Azure USBX with a STM32H7 processor and a Microchip 2514 USB HUB. The STM hcd driver is initialized and the software initializes UsbX support for a hub, multiple CDC ACMs, a HID Keyboard and MSC devices. All the devices can be discovered and work as expected. There is an issue when a FULL SPEED device (CDC ACM and HID Keyboard) is unplugged and then plugged back in again causes the USB bus to become unresponsive. The only current solution is to reset the USB2514 Hub. Has anybody seen this or have any suggestions?SolvedpcametekApr 25, 2024Copper Contributor415Views0likes1CommentHow to tune azure netxduo to receive more incoming connections?
Hello, I am using the stm32h563 processor in my project. I made a TCP Server application using the ethernet connections of this processor and I was able to run it as I wanted. But I saw that it could not connect to another client over the same IP address without breaking the connection with one client. Even though I set the NX_MAX_PHYSICAL_INTERFACES defined value to two, there was no change. Also, in the files I shared, it is said that we can make a tcp server and 2 tcp client connections and open a separate socket for each (1). After some research, I realized that this problem can be solved with lwip + freertos. Below are examples of these solutions. How can I make a similar solution on Azure RTOS Netx side? Our problem with lwip + freertos solved community issue(2) was previously shared and the solution was "By tweaking the options in lwipopts.h, it should be possible to receive more incoming connections: MEMP_NUM_TCP_PCB, MEMP_NUM_TCP_PCB_LISTEN, MEMP_NUM_NUM_NETCONN, etc... " was returned as ". As a similar header you can see the extension(3) under the References header. References: https://learn.microsoft.com/en-us/azure/rtos/netx-duo/overview-netx-duo (2)https://community.st.com/t5/stm32-mcus-embedded-software/how-to-tune-lwip-to-receive-more-incoming-connections/td-p/227809 (3) https://community.st.com/t5/stm32-mcus-embedded-software/i-hope-to-achieve-one-to-many-connections-using-tcp-socket/m-p/592109 Best Regards Eren AkyolEren_AkyolFeb 01, 2024Copper Contributor356Views0likes0CommentsNetX Duo and AWS
Hi, I am currently using Azure RTOS on my project. I want to connect my device with AWS(Amazon Web Services). I found some sources but, I did not find any examples on STM32 devices. Is there any examples with NetX Duo on AWS? On the other hand I have found examples with FreeRTOS. Do I have to use FreeRTOS to access all features of AWS? Regardsmkilic_makDec 07, 2023Copper Contributor568Views0likes1CommentConfiguring Levelx
I am kind of lost about filex vs levelx configuration. My memory is the w25q64jv, it has 8mb being 2048 blocks of 4096 bytes. Configuring levelx: nor_flash->lx_nor_flash_total_blocks = 2048; nor_flash->lx_nor_flash_words_per_block = 128; What I have understood is Levelx uses 1 sector (512b) for control, so 7 sectors are left for data for each block (4096b). Now I computed the total data sectors available: 7 x 2048 = 14336 and have used this amount when formating the media (total_sectors). Is that right?TheFlyvioDec 04, 2023Copper Contributor755Views0likes2CommentsThreadX / Azure RTOS Licensing for older Versions of ThreadX
With the recent announcement that ThreadX will be managed by the Eclipse Foundation under the MIT license, my team is interested in how that affects our current licenses. Our current license for an older version of ThreadX doesn't apply to new products, so how are we supposed to obtain a new license using the older version of ThreadX for these new products. Will the MIT license retroactively apply to older versions of ThreadX?SolvedAustinWolfDec 01, 2023Copper Contributor636Views0likes1CommentLevelX NandFlash Problem
The page size of nand flash used is 8KB, a block has 128 pages, a total of 10 * 1024 blocks are used, but when _lx_nand_flash_open function is used to open, it is found that the opening fails. According to my code trace, it was found that the LX_NAND_PAGE_TYPE_ERASE_COUNT_TABLE branch in the _lx_nand_flash_open function caused an error when page_index=1. But this value is actually written using the _lx_nand_flash_format function, Because the _lx_nand_flash_metadata_build function gets page_count=2 (page_count= (nand_flash ->) when erasing counts. lx_nand_flash_block_status_table_size + (nand_flash -> lx_nand_flash_bytes_per_page - 1)) / nand_flash -> lx_nand_flash_bytes_per_page;) I would like to ask, does levelX not support such a large Nand-Flash? Or is there something wrong with my configuration?baymaxPPSep 27, 2023Copper Contributor449Views0likes0Comments
Resources
Tags
- NetX Duo3 Topics
- LwM2M2 Topics
- Azure RTOS2 Topics
- FOTA1 Topic
- OTA1 Topic
- BG951 Topic
- STM321 Topic
- usb-c1 Topic
- USBx1 Topic
- USB Control1 Topic