Inici>Hardware

Resol els problemes de connexió a la xarxa

Les xarxes poden patir incidències en diferents punts, però amb característiques similars. Una connexió de xarxa estàndard està formada pel dispositiu, la xarxa (per cable, sense fils o mixta), l’encaminador i la connexió a internet (normalment amb un mòdem de fibra, DSL o cable). Quan hi ha una incidència amb la xarxa, és important determinar quin n’és l’origen, anar a la secció corresponent i trobar una solució específica.

Aquestes són les àrees on pots tenir problemes de xarxa:

  • Entre el mòdem i l’encaminador

  • Entre l’encaminador i la xarxa

  • Entre la xarxa i el dispositiu

  • Entre dos dispositius

  • Entre els dispositius i els Serveis de Square

En funció de la configuració de la teva xarxa i la seva complexitat, podries trobar-te amb necessitats més complexes. Et recomanem que contactis amb un professional en xarxes si necessites cap configuració addicional, com ara modificar un tallafoc.

Abans de començar 

  • Reiniciar el mòdem i l’encaminador és el primer pas que has de provar. No obstant això, tret que la connexió a internet o la xarxa estigui inoperativa i no funciona, et recomanem que facis aquest pas fora de l’horari comercial, per si el reinici tarda més del previst.

  • Si has modificat, actualitzat o afegit recentment cap detall de la configuració de xarxa, prova de restablir els paràmetres que tenies quan funcionava.

  • Comprova la cobertura wifi i que tots els dispositius rebin un senyal prou fort. L’aplicació WiFiman d’Ubiquiti et pot ajudar a mesurar la cobertura wifi a la teva ubicació física.

  • Comprova que els dispositius no estiguin passant d’una xarxa a una altra. Si el dispositiu està configurat per funcionar amb diverses xarxes wifi en un mateix punt de venda, podrà connectar-se automàticament a una altra xarxa diferent de la que volies. En funció de la configuració d’aquests tipus de xarxes, això pot provocar que falli la impressió de xarxa i reduir la velocitat, entre altres incidències més greus.

  • Comprova en quines condicions es troba el teu equip de xarxa. Cerca danys en els cables, obstruccions en els punts d’accés o si els dispositius de xarxa i de TPV estan prou allunyats de fonts d’interferència de radiofreqüència, com ara microones, molinets de cafè, dispositius intel·ligents, llums o càmeres. 

  • No modifiquis la configuració de xarxa si no tens una idea clara sobre què afecta cada paràmetre. Si no configures la xarxa correctament, pot ser que tinguis incidències greus en les operacions del negoci i interrompre l’activitat fins que un professional resolgui el problema.

Com funcionen les xarxes

Segmentació de xarxa

  • Una VLAN és una xarxa d’àrea local virtual. Et permet agrupar els dispositius en una xarxa virtual diferent encara que comparteixin la mateixa xarxa. Els dispositius en diferents VLAN estan aïllats digitalment entre si, com si fessin servir diferents xarxes físiques.
  • Una subxarxa és una subdivisió de la xarxa que fa servir el protocol IP. Les xarxes es poden dividir en dues o més xarxes, i aquest procés rep el nom de divisió en subxarxes. Les VLAN i les subxarxes sovint es fan servir conjuntament per dividir o unificar grups de dispositius i controlar com viatja la informació per la xarxa.
  • Això és important, ja que Square requereix que els dispositius TPV estiguin connectats a la mateixa subxarxa.

Comunicacions de xarxa

  • UDP i TCP són protocols de comunicació. Defineixen com es mou la informació per la xarxa. La principal diferència entre el TCP (protocol de control de transmissió) i l’UDP (protocol de datagrama d’usuari) és que el TCP requereix una connexió, mentre que l’UDP no. Tot i que el TCP és molt fiable, la transferència de dades és més lenta. L’UDP és menys fiable, però funciona més ràpidament.
  • El protocol de transferència d’hipertext (HTTP) és un protocol per accedir a recursos, com ara documents HTML. És la base de qualsevol intercanvi de dades a internet. HTTPS transmet totes les dades de forma xifrada. És fonamental per garantir que cap tercer pugui interceptar les dades confidencials a través de la xarxa. L’HTTPS es basa en el protocol de seguretat de la capa de transport (TLS) per garantir la seguretat de les comunicacions a través de la xarxa.
WPA, WPA2 i WEP són estàndards de seguretat wifi dissenyats per protegir les comunicacions mitjançant xifratge. És preferible fer servir algun tipus de xifratge que no fer-ne servir cap, però el WEP és el més vulnerable i es desaconsella el seu ús.

Resol els problemes de connexió a la xarxa

Step 1: Run a network connectivity report

A connectivity report tests for internet connection, local network access, and access to Square services. To run a connectivity report, you’ll need a compatible device running the latest version of the Square POS app.

  1. From your device, select ≡ More > Settings > Hardware.
  2. Select Test connectivity. The test can take up to a minute to populate.
  3. The report will provide a status report that can be shared with your IT department or Square Support teams for further assistance.

The Hardware Hub can also be accessed from My devices in the menu bar at the top of your device screen. This option only appears when accessories, like printers, are connected to your device.

Step 2: Check your internet connection

Your Square POS shows your device connection to reach the internet. Your Square POS will say Wifi if using Wi-Fi, along with the signal strength in dBm (decibel-milliwatts), and will say Cellular if you’re using your cell connection (phones or tablets with cell capability).

If this test fails, you don’t have internet access and can’t use Square services.

You can reboot your modem and router, and if that doesn’t work engage your ISP, switch to a backup internet connection, or process offline payments. Learn how to process offline payments with Square..

If you’re still having problems, continue to step 3.

Step 3: Check your local network access

When using Wi-Fi or Ethernet, this test checks that your device has an IP address from the router, and if that IP address is valid. If Square doesn’t have an IP address, your Square POS will report Critical Issues. An IP of 0.0.0.0, or starting with 169.254.y.z means the device is still trying to get an IP from the router, or the router is unreachable. If you don’t have an IP address, Square will not function properly.

Next, your Square POS will check that it can access the local gateway. The gateway is the router and must be accessible from the POS device or it won’t have local or internet connectivity. Your POS will ping the gateway and follow the same rules as the internet.

If this test fails, it can indicate several work issues:

  • If both this test and the internet test fail, you either have a problem with the access point or router, or the device itself can’t connect to the network. Being unable to connect to the network will prevent Square from reaching out to the wider internet as well. You should also see the Square test fail in this case.
  • If there is no IP address assigned to the device, either 0.0.0.0 or if it starts with 169.254, you can try rebooting the router, disconnecting and reconnecting Wi-Fi or ethernet cable, or swapping out the ethernet cable.
  • If none of these work you may need support from a networking professional, or sometimes from your ISP.
  • If there is an IP address like 192.168.x.x or 10.x.x.x or 172.x.x.x then there could be an issue with the access point or router and rebooting may help.
  • If your network has been set up by a professional or has advanced settings configured, you may need to check that the firewall or configuration isn’t blocking Square POS devices.
  • If everything seems to be working and this test is showing a failure, rerun it a few times. This test can provide variable results depending on gateway rules, firewalls, and VLANs and should be a diagnostic step only.

Step 4: Check access to Square services

This test calls a Square service to see if it can be reached. This isn’t intended to be a comprehensive report on the status of Square services and shouldn’t be used to determine whether or not there is an outage on the Square side. To obtain detailed status for Square services, visit https://issquareup.com/.

What this test does verify:

  • If DNS (Domain Name Servers) can resolve the Square domains.
  • If there are no firewall or routing rules blocking access to Square domains.
  • If your account status is operational and requests are making it there and back.

If this test fails:

  • If your internet access is working, you can double check by running a speedtest. If you’re using an iOS or Android device, you can visit https://wifiman.com/ or install the WiFiman app.
  • For Square Terminal or Square Register, you can test from another device connected on the same network. For a valid test result make sure you run the test from a device with cellular disabled and from the same physical location.
  • If this speed is very low (<5mbps) or has very high latency (a ping over 250ms), it’s possible that while the internet is working, it’s too slow for devices to operate properly. Some common reasons may include slow connection, a congested network, or poor Wi-Fi coverage.
  • For Square Register or Square Terminal, It’s possible you have an issue with DNS servers and might need assistance from a networking professional.
  • A firewall may be blocking access to Square services.
En determinats casos, un equip físic pot tenir múltiples funcions. Per exemple, UniFi Express ofereix un encaminador tot en un i un punt d’accés sense fil, però necessitaràs un commutador de xarxa per connectar-hi més dispositius. Tot i que és pràctic en determinats casos (com ara les furgoteques), no es recomana l’ús de dispositius tot en un, ja que no ajuden a identificar fàcilment els problemes de xarxa.

Verifica la teva adreça IP

Si necessites verificar l’adreça IP per resoldre un problema, segueix aquests passos en funció del dispositiu.

Square devices

  1. On your device, select More > Settings.
  2. Select Hardware > Test connectivity to generate a report.
  3. Your report will show network status, including IP address under the Network details section.
  4. Scroll down to see additional report details.

WiFiman App

  1. Download the WiFiman app for iOS or Android.
  2. Connect your mobile device to the Wi-Fi network that’s associated with your UniFi setup. Note: Without a UniFi Gateway, the following step will only detect devices connected to the same network/VLAN that is associated with the Wi-Fi being used.
  3. In the Discovery section, look for the UniFi device. If your UniFi device is not displayed, or it has an IP address of 192.168.1.20, see the section below.

Note: WiFiman can only be used for UniFi setups.

UniFi interface

  1. From the UniFi Network, go to Settings > Networks.
  2. Select the IP Leases link by the network in question, and look for your device.

UniFi direct connection device

  1. Unplug your offline UniFi device.
  2. Connect a laptop or PC to your network using the same cable and port used with the UniFi device.
  3. Check the IP address of the device. This is often located in network settings or IP configuration.
  4. If there is no IP address or the IP address starts with 169.254.xxx.xxx, then you’ll need to troubleshoot why an IP address cannot be received.
  5. Reconnect to the internet.

Consulta més opcions per resoldre els problemes 

Run a router speed test

If your router supports a built-in speed test, run the test from the router for the most accurate results. Before running this test, connect to a backup internet connection or enable offline payments. Offline mode requires disabling your Wi-Fi and may interfere with network printing.

  1. Open a browser on any device connected to the router via Ethernet or wirelessly.
  2. Go to the router’s IP which will look something like https:// or https://192.168.1.1.
  3. Enter the username and password for your router.
    • On Unifi, such as Dream Machine, the speed test is found from Network > Dashboard > Speed test on the left side below Internet Health.
    • On non-Unifi devices, reference your router’s documentation and look for Internet speed test or Speed test.
  4. Select Run now.
  5. If this test is successful and meets our minimum requirements, your internet connection is unlikely to cause problems.
  6. If this test doesn’t run, there may be an issue with the router itself, your modem, or your ISP is having issues with service. In both cases, we recommend contacting your ISP.

If your router can’t run a speed test:

  • Use the WiFiman app. It’s available on the Apple Store, Google Play, and for desktop on Ubiquiti.
  • On an iPad or Android device you can open a browser and go to http://www.speedtest.net or www.fast.com and run a test in your browser. This test won’t work from a Square Terminal or Square Register. If you want to test the speed of the internet on those devices you can use an Android or iOS phone, with the cellular modem disabled from your hardware.

Articles relacionats