![]() ![]() I believe that, as you said, you will need to analyse the IP packets received from the accessory. How are the IP packets encapsulated over Bluetooth? Is it using something like 6LoWPAN? Since we can't send raw IP packetsįrom iPhone, wanted to analyse the IP packet received from the accessory, find if it is TCP/UDPĪnd construct the corresponding packet and send it to the destination. The accessory will send data as IP packets. The high level goal is to route the IP packets from accessory device (which connects to iphone Even on systems where raw IP is available, you typically can’t do this the platform’s TCP stack ‘owns’ the TCP protocol. Quinn “The Eskimo!” Developer Technical Support Apple There are plenty of third-party libraries that let you slice’n’dice IP packets, including full-scale user space IP stacks, but I don’t have any direct experience so I can’t offer a specific recommendation. Is there any library on the ios side which might help us with this ? That feasible, but you probably don’t want to write your own TCP/IP stack from scratch. An alternative is to use your own TCP/IP stack to re-assemble the TCP flow from the packets you get from the device and then proxy that flow using an iOS TCP API like NWConnection. The traditional option here is to implement NAT, however that’s not feasible on iOS. So you have to do some sort of rewriting. If you forward those as is, the receiver’s reply will never get to you. The packets you get have a source address that’s unique to your accessory, probably some link-local or private IP address. ![]() You can’t do it because there’s no way to send raw IP. There are two problems with forwarding packets: IP packet received from the accessory, find if it is TCP/UDP andĬonstruct the corresponding packet and send it to the destination. Since we can't send raw IP packets from iPhone, wanted to analyse the ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |