Optical boundaries for LED-based indoor positioning system

: Overlap of footprints of light emitting diodes (LEDs) increases the positioning accuracy of wearable LED indoor positioning systems (IPS) but such an approach assumes that the footprint boundaries are deﬁned. In this work, we develop a mathematical model for deﬁning the footprint boundaries of an LED in terms of a threshold angle instead of the conventional half or full angle. To show the effect of the threshold angle, we compare how overlaps and receiver tilts affect the performance of an LED-based IPS when the optical boundary is deﬁned at the threshold angle and at the full angle. Using experimental measurements, simulations, and theoretical analysis, the effect of the deﬁned threshold angle is estimated. The results show that the positional time when using the newly deﬁned threshold angle is 12 times shorter than the time when the full angle is used. When the effect of tilt is considered, the threshold angle time is 22 times shorter than the full angle positioning time. Regarding accuracy, it is shown in this work that a positioning error as low as 230 mm can be obtained. Consequently, while the IPS gives a very low positioning error, a deﬁned threshold angle reduces delays in an overlap-based LED IPS.


Introduction
Indoor positioning forms an integral part in the development of future technologies and its importance in daily activities cannot be overemphasized. Application areas for indoor positioning systems range from smart monitoring of people and facilities in an indoor location to enhanced search and rescue operations during emergencies [1,2]. As a result, indoor positioning has been the subject of increasing research interest over the past decade. The central idea behind the design of an indoor positioning system is to establish a 'transmitter-receiver communication' link and use a signal parameter to determine the location of the receiver [3]. Using radio frequency (RF) communication channels, ZigBee, Bluetooth, ultra-wideband, and WiFi have all been used to develop indoor positioning systems [4]. However, the possibility of multipath reflections and interference with other RF-based devices makes RF unsuitable for indoor positioning [5]. The use of magnetic or induction-based systems and ultrasound systems has been investigated for indoor positioning, but these systems come with high installation costs [6,7]. In addition, magnetic systems can interfere with other sensitive electromagnetic signals (such as those in hospitals).
Light emitting diodes (LEDs) have been receiving attention recently in the context of positioning due to their cost, lighting characteristics, and ability to communicate. LED-based positioning has been Table 1. Summary of light emitting diode (LED)-based positioning techniques. Adapted from [15]. Exp: Experimental, Sim: Simulation, APD: Avalanche photo-detector

Algorithm
Reference Accuracy Complexity

RSS
Although smart phones have been used as mobile receivers, holding a phone round the clock for the sole purpose of positioning might not be convenient. To the best of the author's knowledge, wearable receivers for indoor positioning were first demonstrated in Reference [66]. The system uses the proximity technique of LED-based positioning due to its simple algorithm. However, since the optical power from LEDs follows a Lambertian distribution, the performance of the IPS is observed to change when the receiver moves towards the edges of the LED beam, which are called the optical boundaries. As a mobile receiver moves from the region of one LED to another, it crosses optical boundaries where the optical power is drastically reduced (almost to zero).
There has not been much emphasis on optical boundaries affecting optical wireless communication (OWC) because the focus has been placed on meeting high data-rate demands [67][68][69]. Conditions that provide sufficient optical power for OWC have been used for investigations to achieve higher data rates. In situations where the receiver is subject to harsh channel models, optical link budget analysis or advanced optical modulation techniques are used to design the optical system. Short distance investigations in Reference [70][71][72] with stationary receivers have been used for indoor measurements, while for outdoor investigations, lasers or collimating lenses have been used [73,74]. Although collimated light beams have their advantages in long distance optical signal propagation, the dispersed light beams from off-the-shelf LEDs are a better choice for the low data rates needed in indoor positioning systems. On a horizontal plane, the region covered by the dispersed beam from an LED, called the optical footprint, does not have a well-defined boundary. Information on the LED footprint has always been communicated in terms of the angle at half power from various manufacturer datasheets. However, as is shown in this work, this information suffices for the use of such LEDs in optical wireless communication, but not in optical proximity-based positioning. This is because, in optical proximity positioning, the LED footprint is very important in determining the accuracy of the positioning. In addition, a moving person may bend toward or away from the LED transmitter. This bending that turns the receiver away from the transmitter is known as receiver tilt.
Optical proximity-based IPS determines the location of an object based on the signal information received [16]. A mobile receiver can only receive this information if the receiver is within the LED footprint. The accuracy of positioning is dependent on the size of the footprint of the LED. Proximity-based indoor positioning systems have been shown to improve accuracy with the use of overlapping LED beams in a MLEM while keeping the receiver wearable [19,75]. By uniquely programming each LED, more identifiable regions are created as illustrated in Figure 1a,b. Figure 1a shows the conventional proximity LED IPS which only identifies a room [16,76]. Figure 1b shows the use of MLEM, with seven additional identifiable regions which are used to increase the positioning accuracy [77]. However, this model has the possibility of LED data packet collisions in the overlap regions. By using packet duration multiplexing (PDM), the collision can be reduced [75,78]. However, Ref. [12,16] this assumes that an LED beam with a definite cut-off angle is used to define overlap conditions for an increase in positioning accuracy.In practice, this is not so. Moreover, when the receiver is tilted as illustrated in Figure 1c, the optical boundaries change. This paper investigates the performance of transmitted optical signals at the optical boundaries and its effect on LED-based positioning. This effect is quantified by measuring the positioning time, which is the time required to know a position. The effect of considering optical boundaries on positioning accuracy is also examined. Investigations of the effect of encoding design and receiver tilts on positioning near the optical boundaries are also carried out and suggestions are given for LED positioning protocol designs based on the results of these investigations.

LED Positions
The rest of the paper is organized as follows: in Section 2, the system model showing the problem is described. The derivation of the threshold angle for defining optical boundaries is presented in Section 3. Investigation of the effects of encoding protocol design, and the effects of overlap and receiver tilt in the optical boundaries on positioning are explained in Section 4. The results and discussion are given in Section 5. Finally, in Section 6, the conclusions are presented.

System Model
The system model for investigating the optical boundaries is developed based on the transmitter front end as shown in Figure 2. Considering a typical room size of dimensions 5 m × 5 m × 3.5 m, where the receiver is on a horizontal plane at a distance of h m from the transmitter. The power received at a location in the room is given by P r = H(0)P t , where P t is the optical power transmitted from the LED, and H(0) is the DC channel gain for directed line of sight (LOS) given in Reference [34,79,80] as where A is the physical area of the PD, d is the LOS distance between the transmitter and the receiver, φ is the angle of irradiance with respect to the transmitter's perpendicular axis, and ϕ is the angle of incidence with respect to the receiver axis. T s (ϕ) is the transmission of the optical filter and is assumed to be in unity for this work as this assumption does not affect generality [81], ϕ c is the field of view of the receiver, g(ϕ) is the gain of the optical concentrator given as a function of the refractive index n as m is the order of the Lambertian source and is where Φ 1/2 is the half angle of the LED transmitter. In this work, the received optical power as the mobile receiver moves along the horizontal plane is expressed in terms of the angle of irradiance at the receiver with respect to the transmitter's perpendicular axis. On the basis of Figure 2, the horizontal displacement x can be evaluated from this figure as x = h tan ϕ.

Problem Description
In this section, the problems with indoor positioning at the boundaries of the LED footprints are identified. Given that the distance between the transmitter and receiver plane h is 3 m, the plots of the normalized received optical power of two LEDs (OSRAM SFH 4554 and VISHAY TSFF 5510 called LED 1 and LED 2 ) with the properties given in Table 2 are shown in Figure 3. The normalized received optical power is the ratio of the received optical power to the peak received optical power. Taking the region beyond which the optical power is not detectable as the optical boundary. Peak optical power is received at the 0 • angle of incidence point for both LEDs. The received optical power starts to reduce, as the mobile receiver moves towards the half angle. At the half angle, the optical power is still sufficiently high to give accurate positioning. Therefore, this angle is not suitable in defining the optical boundary for indoor positioning. At the full angle, which is twice the half angle (20 • for LED 1 and 76 • for LED 2 ), the normalized optical power for LED 1 is 0.05, while that for LED 2 is almost 0. These inconsistencies around the half-or full-angle-based boundaries of the LED cause a mobile receiver to perform inconsistently when it is in the boundary region. In addition, wearable mobile receivers are subject to tilting. The received optical power as the PD moves along the horizontal plane is presented in Figure 4 for when the PD in Figure 2 is tilted at 0 • , 20 • , 40 • , and 60 • to the right of LED 2 . The boundary for positioning is seen to vary with the angle of tilt for a receiver. Consequently, neither the half angle nor full angle is enough to determine the boundary of proximity-based IPS. In view of this, a threshold angle, based on the receiver design, which suffices in determining the boundaries for positioning is defined in this work.

Optical Boundary Definition
In this section, the optical boundary of the system in Section 2 is defined in terms of the positioning system parameters. The optical boundary depends on two major sets of design parameters. First are the physical system parameters, which are derived from the transmitter properties, receiver properties, and receiver orientation. These parameters are given in Table 2 and their effects are quantified using the channel model (1). The second sets of parameters are the communication system parameters which are determined by the positioning communication protocol design. The effect of the encoding scheme design on the optical boundaries is estimated in Section 4.1.

Noise Determination for the System Model
To determine the effect of the aforementioned design parameters on positioning for the system model considered, the bit error rate (BER) is required. The BER is derived from the relationship between the BER and signal to noise ratio (SNR). The SNR is given in Reference [82] by where R is the responsivity of the photodetector, and σ t is the total noise in the receiver system which is given as where σ s and σ th are the shot noise and thermal noise, respectively, as described in Reference [82]. On-off keying (OOK) modulation is used to determine the total noise value in this system experimentally by computing the Q-factor given in Reference [83] by where v n and v f are the on and off voltage levels and σ n and σ f are the noise deviation at the on and off voltage levels of the OOK modulated pulse. Laboratory measurements of v n , v f , σ n , and σ f are taken at height h to compute Q. From the value of Q, the BER is calculated by Given that for OOK, from Reference [84], for a random variable ν. By comparing (7) and (8) we can write and by substituting (9) into (4), the total noise in the system is given by

Threshold Angle for Optical Boundary
The boundary of LED footprints varies for different optical transmitter and receiver orientations as illustrated in Figure 4. In order to establish a common ground for designs, a threshold angle is defined as the angle where a minimum number of transmitted packets are received. Therefore, the threshold angle occurs when the packet delivery ratio (PDR), which is the ratio of the number of packets received to the number of packets transmitted, is greater than or equal to a specified value P. Given there are N p independent bits in a packet and that for successful packet reception all of these bits must be received without error, the PDR is defined in terms of BER as therefore the required BER to yield P is given by On the basis of the relationship between the BER, SNR, and P r defined in (4) and (1), the threshold angle φ th is given as Therefore, given N p number of bits in a designed positioning protocol and the minimum required PDR P, the threshold angle can be evaluated.

Investigations Showing the Effect of Defined Optical Boundaries
Three investigations which are carried out to show the effects of receiver-based optical boundaries are explained in this section. First is the effect of positioning protocol design for a single LED transmitter, next is the effect of overlap for multiple LED transmitters in an overlap region, and then, the effect of tilt in the overlap region. Finally, the effect of all these on positioning accuracy is quantified.

Boundary Based Positioning Protocol
The three major modules which describe the transmitter are LED ID generation, data encoding, and modulation as shown in Figure 2. For investigation purposes in this section, the LED ID is generated using normal random variables with equal probability of ones and zeros. The generated binary data is encoded and then modulated to a 38 kHz frequency. The optical energy content in the signal is dependent on the encoding protocol and type of modulation scheme used. Encoding not only marks start and stop bits for frame synchronization, it also maps ones and zeros to pulses of different high and low duration depending on the scheme used. In the design of an encoding protocol for a frame, pulses of duration L are used to encode the data such that a one in bi-phase coding (BPC) as explained in Reference [85] is a high pulse of duration L followed by the zero of duration L, and a zero is encoded as a low pulse of duration L followed by a high pulse of duration L. With pulse width modulation (PWM) based encoding, three different relationships can be established between the representation of ones and the representation of zeros. They can be additive, where the widths of pulses are designed to be in linear increments of L. For instance, one is represented by L and zero by L + L. Pulses can also be designed to operate in gains, where the widths of pulses are designed to be in multiplicative increments. Finally, pulses can be represented in exponents where the widths are in the form L and L L . If θ 1 (t) and θ 2 (t) are two orthonormal basis functions, a signal space representation for each of the above-mentioned schemes can be written as represented in Table 3.
To show the effects of pulse duration on BER and PDR, the BPC in Table 3 is used to form packets for the transmission of positional information. The packets are transmitted considering the Lambertian channel model for LEDs as described in (1), where the transmitted power is based on the energy signal. Noise from Section 3.1 is used to calculate the SNR, and the BER is calculated using (9). The effect of the encoded pulse duration L on the BER and delay in positioning is estimated in Section 5.4.

Quantifying Effect of Full Angle Positioning Boundary
In this section, the process of examining the effect of the conventional full angle positioning boundary on an IPS with single and overlapping LED beams is explained. In the full angle positioning boundary, a receiver in the boundary region takes a longer time to determine its position due to the low SNR in the region. This is because low SNR causes a higher BER which leads to reduced PDR. Since packets with error are discarded, the receiver waits for a longer time to receiver errorless packets. This wait increases positioning time. Consequently, analysis to show the effect of the full angle boundary on positioning is done by determining the average positioning time (APT) when the full angle is used as the LED beam region and repeating the process using the threshold angle.
Considering an untilted receiver at an incidence angle ϕ = φ from the transmitter, if the BER at this point is BER φ for a single LED transmitting N p bits in a packet, given the pulse duration L and the PDR from (11) PDR φ , the positioning time is computed as For a single LED positioning system illustrated in Figure 5a with the radius of beam being R at the full angle of LED 2 , if the positioning time t φ at a point with incidence angle φ is t 1φ , the positioning time of all points on a circle at the radius r is given as 2πrt 1φ . By geometry, r = h tan φ. Therefore, the positioning time for all points in the LED beam is given as The APT is the ratio of the total positioning time to the total number of points given by the area of the beam. Therefore the APT is Given that R = h tan Φ, t 1 can be written as For the system with two overlapping LED beams, a probabilistic PDM process is introduced in Reference [66,75] to handle collisions. In the region where two LED beams meet, the positioning time is taken as the time to receive packets from one of the LEDs twice. As a result of the stochastic nature of PDM, packet collision may or may not occur. If there are no collisions in transmitted packets, the positioning time at φ, t nφ varies between If collisions occur, the positioning time can be written where n is the number of cycles required to guarantee that a packet is received without collision and is given as n = log 2D (1 − 0.9999) to guarantee a 99.99% chance that a packet is received given the probability of collision for two LEDs in the overlap region is 2D, where D < 0.5 is the transmission duty cycle given as t p t y . Therefore, the overall APT at a point with an angle of incidence φ from the transmitter is given as Using a similar method for the system with a single LED, considering the area of overlap between the two LED beams is given as A 2b = π−1 2 R 2 , the APT for the overlapping circles illustrated in Figure 5b, is given as where φ ∈ [0, Φ] for conventional systems and φ ∈ [0, φ th ] for the boundary defined system.

Positioning Delay Due to Tilt
The study of the effect of tilt plays a vital role in positioning as it covers practical scenarios encountered when the IPS is used in real life. The method used to analyze the effect of tilt is discussed in this section. Tilt is considered as being a direction away from the incident ray of the LED as illustrated in Figure 1 Therefore, when the receiver is tilted, the new angle of incidence at the receiver is ϕ + ϕ t . By substituting this value into (13), φ th is computed as within the limits 0 ≤ ϕ + ϕ t ≤ ϕ c because the incident rays fall outside the field of view of the receiver for ϕ + ϕ t > ϕ c . In order to determine the positioning delay when tilt occurs, the difference in positioning times using Φ and φ th is computed using a similar analysis as presented in Section 4.2.
To observe the effect of an increasing amount of tilt, ϕ t is increased and the positioning delay recomputed as explained in Section 5.6.

Accuracy of the Positioning System
In this section, the effect of a defined optical boundary on the positioning accuracy for a given MLEM-based system is presented in terms of positioning error. To show the effect of the optical boundary on positioning error, a Monte Carlo simulation is used to calculate the positioning error of the overlap-based proximity technique introduced in Reference [75] and the process is presented in Algorithm 1.
Firstly, one LED is used in the room, next, two LEDs are used for the investigation, and then, by replacing each LED with four LEDs uniformly distributed across the length and width of the room, the process is repeated and the results are presented in Section 5.2. Therefore, the number of LEDs increase in the progression 1, 2, 8, 32, ..., and for presenting the curves, an LED exponent factor is defined as n = log 2 (number of LEDs).
The radius of minimal positioning error r m is computed from the algorithm and this is used to determine the desired threshold angle of an LED φ thd given by Algorithm 1 Computation of positioning error. if (x l − x) 2 + (y l − y) 2 <= br then 10: x r ← x l .

18:
Replace each LED with 4 LEDs and reinitialize 19: goto loop until number of LEDs > 32.

Results and Discussions
In this section, the experimental noise measurements, simulation, and analytical results for the investigations carried out in this work are presented. It starts with experimental measurements used to estimate the noise in the system under consideration. This noise value is used to determine the threshold angle given in (13), which is used to define LED boundaries in subsequent investigation.

Estimation of Total Receiver Noise
The total receiver noise is measured by the experimental setup shown in Figure 6 using LED 2 with the parameters given in Table 2. The transmitter uses ATMEG 32 microntrollers to implement the processes illustrated in Figure 2 for the transmission of positional information. The receiver is a TSOP 38238 detector with an ATMEG 32 microcontroller. The experimental setup is used to measure the values of v n , v f , σ n , and σ f using an (Agilent) oscilloscope. The measured parameters are used to compute the value of Q by (6). Without loss of generality, we assume unity of receiver responsivity coefficient, and using the values from the experimental measurements as presented in Table 4, the total receiver noise is computed as σ 2 t = 1.04 × 10 −12 V 2 .  Using the values in Table 4, the SNR is estimated at 20 dB. However, as the receiver moves towards the half angle, the SNR drops to 8 dB, and as the distance between the transmitter and the receiver is increased from 1 m to 3 m, the SNR further drops to about 1 dB. This fluctuation in SNR is compensated by the automatic gain controller (AGC) in the receiver circuitry [86]. This ensures that the received signal is amplified based on the displacement of the receiver from the transmitter so that the positioning information is always received. Towards the optical boundaries as the strength of the optical signal is reduced, the receiver bit error increases. The effect of this increase in bit error on positioning time is subsequently quantified.

Effect of Optical Boundaries on Positioning Error
Using Algorithm 1, the variation of positioning error for increasing beam radius and number of LEDs is presented in Figure 7. It is observed that the error in positioning is reduced by increasing the number of LEDs. For 1 LED, 2 LEDs, 8 LEDs, 16 LEDs, the minimum positioning error is 1907.2 mm, 1460.5 mm, 626.44 mm, and 230.99 mm, respectively. The characteristics plot in Figure 7 shows an optimal point for performance between regions of low beam radius and regions of high beam radius. This is because, at low beam radius, there are no overlaps between the LED beams and the probability that the receiver is outside the region of coverage of the beams is higher. As the low beam radius increases, this probability reduces, so the positioning error also reduces. As the overlap starts, the positioning error reduces further until the performance is optimal. However, as the beam radius continues to increase, the overlap regions also keep increasing and the non-overlapping regions reduce until every part on the room is identified as one single overlap region and the positioning error is high.
The trend in Figure 8 shows that the minimum positioning error reduces as the number of LEDs represented as the LED exponent increases. It is deduced that the positioning error reduces to 27.6 mm at an LED exponent of 10 which corresponds to 1024 LEDs in the room. Perhaps in some scenarios, installing 1024 uniquely identifiable LEDs in a room is not feasible and will increase installation cost. This increased installation cost is prevented by choosing the desired accuracy based on specific applications. For instance, for human positioning, since the average shoulder breadth of a person is between 450 mm and 600 mm [87], a system with this range of positioning error will prove accurate enough. Therefore, from Figure 8, the number of LEDs required for accurate human positioning is between 8 and 16, which is not only feasible but also keeps the system inexpensive. The information related to the number of LEDs and beam radius that provide the desired positioning accuracy, given in Figures 7 and 8, is used to estimate the correct threshold angle using (24) for minimal positioning delays. For practical purposes, this threshold angle value is used to determine the desired half angle for an LED using (13). In the design of an LED-based indoor positioning system, the available number of LEDs and desired positioning error can be maintained while the LED type is selected based on the desired threshold angle that prevents delays as presented in subsequent sections.

PDR vs. BER Relationship
Here we present a validation of the PDR and BER relationship proposed in (11). This is done by comparing the theoretical performance of the system with the performance using the simulation. By varying BER between 0.0001 and 0.1 with steps of 0.0001, and substituting the values in (11), the theoretical curve shown in Figure 9 is plotted. The simulation values are derived using the values of the BER with increments of 0.05 as the probability of bits in error in an optical channel using MATLAB software. Five hundred thousand packets are sent and the number of uncorrupted packets received is counted, the PDR is calculated as the ratio of the number of uncorrupted packets received to the total number of packets transmitted.
This takes account of the packet-based synchronization protocol which is implemented in hardware such that any packet which is not received correctly is discarded [85]. The illustration of the comparison is presented in the semi-logarithmic plot of Figure 9.  The simulation is done using the popular 12-bit Sony infrared packet [88] and a novel 4-bit packet designed in Reference [85]. In both cases, the curves validate the relationship between BER, PDR, and the number of bits in a packet as presented in (11). In terms of the performance of the packets, by comparing the two curves in Figure 9, the 4-bit packets provide a higher PDR for high BER values. Therefore, it has a faster rate of determining positioning. The 12-bit curve has low PDR values at high BER which implies that packets are easily discarded under conditions which result in high BER. Examples of these conditions are low SNR at optical boundaries and tilted receivers. Therefore, indoor positioning protocols are to be designed with the lowest possible number of bits to avoid unnecessary delays due to packet loss under the conditions. Another way to avoid the delay is to define minimum PDR conditions at the receiver. This results in a receiver-defined optical boundary as discussed in Section 3.2 and the effect is quantified in Section 5.5.

Effect of Encoding Duration on BER
By maintaining the receiver noise at the value obtained in Section 5.1, and as the receiver moves on a horizontal plane (Figure 2), the LED data is encoded using BPC for various values of pulse duration L. As L is increased from 0 to 60 µs, the BER increases as the mobile receiver moves from an incidence angle of −Φ to Φ as shown in Figure 10. Two key pieces of information are drawn from the Figure 10. The first is the effect of the encoding duration on BER. As the value of L increases, the minimum BER also reduces and the range of incidence angles for which is an acceptable BER increases. The second piece of information is about the range of incident angles with acceptable BER values. From Figure 10, if no threshold is defined at the receiver, as the mobile receiver moves towards regions where the angle of incidence is above 40 • , the BER value becomes greater than 10 −2 and the PDR is less than 1 (see Figure 9). Therefore according to (14), the positioning time is increased. As the mobile receiver approaches the full angle (78 • ), the BER increases further, which causes much more of a delay in positioning time. To address this delay, a desired PDR value which corresponds to an optical threshold angle is set. For explanation purposes, let a minimum PDR value be selected such that when packets starts getting discarded (say two out of every 10 so that P = 0.8), the receiver defines a boundary. A plot of the incidence angle above which the BER does not meet the conditions set out in Section 5.3 is presented in Figure 11. The result in Figure 11 shows the maximum angular displacement of the receiver from the transmitter at different encoded pulse durations to keep the PDR above 0.8. For a pulse duration of 500 µs, a threshold angle of about 62 • gives a PDR above 0.8 and for a pulse duration of 600 µs, the threshold angle for the same PDR is 60 • for the 12-bit protocol and 64 • for the 4-bit protocol. By using this strategy in the design of the positioning system, the positioning time is defined according to (14) thereby reducing positioning delays.

Defined Threshold Angle to Reduce for Positioning Delay
In this section, the effect of a defined threshold angle is presented in terms of positioning time. This is because the positioning time presents information on the practicability of the positioning system. Given that the average walking rate of a person is about 1 m/s [89], the desired range of positioning time will be below 1 s.
For a single LED transmitting packets where bits are encoded with a pulse length L between 0 to 1 ms, the APTs are presented in Figure 12. It shows the APT when optical boundaries are defined at the threshold angle and the APT when they are defined at the full angle as explained in Section 4.2 using 4-bit and 12-bit packets in (17). The results show that the APT generally increases with an increase in encoding pulse duration. However, for the 12-bit packet, the APT is initially very high as a result of the high BER when the pulse duration is low. At L = 600 µs, the APT for the threshold angle defined optical boundary system is 11 ms for 12-bit packets and 3 ms for 4-bits packets, and for the conventional system it is 2.5 s for 12-bit packets and 40 ms for 4-bit packets. When a two-LED overlap region is considered, for a cycle time of 72 ms where the minimum APT occurs, the boundary defined receiver maintains the positioning time of the 4-bit packets at 0.45 ms instead of 5.39 ms, and for the 12-bit packets it is maintained at 1.35 s instead of 388 s as presented in Figures 13 and 14. The implication of this is that the conventional full angle cannot be used to define boundaries for the overlap based system. Delays of over 1 s (of about 5 s and 388 s) renders the positioning technique unusable. Therefore, a receiver based threshold angle must be implemented with the IPS. This is because the use of threshold angle prevents the receiver from persistent delays caused by high BER, where PDR falls below the acceptable rate P.

Defining Optical Boundaries to Compensate for Receiver Tilt
The results in Section 5.5 consider a horizontal receiver in parallel to the plane of the transmitter. However, in reality, the receiver could be tilted. When tilt occurs, the BER, especially at the boundary region, worsens. At the full angle, this poor BER causes a greater delay in receiving packets which carry positioning information and thereby causes a delay in the positioning time. Repeating the process of Section 5.5 and including 4 • , 8 • , and 12 • angle of tilt in the angle of incidence ϕ according to (22), the positioning times are presented in Figures 15 and 16 for the 4-bit and 12-bit packets. The characteristics plots in Figures 13-15 show optimal cycle times for low APT between regions of low cycle times and high cycle times. This is due to two occurrences. Firstly, at very low cycle times, packets are not adequately separated to allow for pseudo-orthogonality using PDM [66]. The probability of collision in this region is high, and the average positioning time is high in this region due to packets lost in collisions. However, if the cycle times are significantly increased (at very high cycle times), there is a long wait before the packets are received. The trade-off between the delay caused by high probability of collisions at low cycle times and the delay caused by long waits at high cycle times lead to the optimal cycle times.
The effect of tilt in terms of positioning time shows that by defining the optical boundary, for a 4 • tilt which is expected in a person walking, the APT is 0.52 s for the 4-bit and 1.6 s for the the 12-bit packets. Whereas, if the conventional full angle is used, the APT increases to 11.25 s for the 4-bit packets and 2343 s for the 12-bit packets. This shows a large amount of positioning time delay when boundary conditions are not specified at the optical receiver. For a 12 • angle of tilt, using the 4-bit packet, the positioning time is 0.7 s, which still meets the criteria for human positioning. Therefore, defining the threshold angle based optical boundary makes the receiver robust and resistant to little tilts which could be experienced in practical scenarios.

Conclusions
The boundary of LED footprints plays a vital role in position estimation of proximity LED-based IPS. In this work, the boundary of an LED footprint is defined based on the properties of a mobile receiver. This technique can be used in RSS, AoA, and fingerprinting positioning systems that involve overlap of LED beams and use the PDM multiplexing technique. This work shows that by properly defining the optical boundary, unnecessary delays in positioning time can be prevented. It first establishes and validates a relationship between the BER and PDR of packets received at the receiver and then shows the effect of encoding protocol design on the BER. These relationships are used to show how signal quality deterioration due to undefined optical boundary affects the positioning time of the IPS. For a single LED transmitter, the defined optical boundary reduced the positioning delay by a factor of 13 for a 4-bit packet and by 230 for 12-bit packets. When overlap, which is used to improve positioning accuracy, is considered, the defined optical boundary reduces the positioning delay by a factor of 12 and 287 for 4-bit and 12-bit packets, respectively. The effect of a tilted receiver is also studied, and this work shows that for a 4 • tilt, the positioning time is improved by a factor of 22 and 1464 for 4-bit and 12-bit packets, respectively. In conclusion, full angle boundaries waste positioning time, and hence are not usable for LED based positioning. In terms of positioning accuracy, the use of a threshold angle maintains a systems positioning accuracy by changing the number of LEDs required. With 32 LEDs, a positioning error of 230.99 mm is achieved, and the error reduces as the number of LEDs increases. This work has shown that a desired positioning accuracy can be achieved while using a receiver based threshold angle in the positioning system design to reduce positioning delay significantly. This facilitates the design of a simple lightweight wearable receiver for indoor positioning.
For future work, the effect of using other encoding schemes to design the positioning protocol will be determined.