Changes between Version 20 and Version 21 of v2x


Ignore:
Timestamp:
10/22/2025 07:01:24 PM (3 days ago)
Author:
Ryan Erbstoesser
Comment:

add som352 section

Legend:

Unmodified
Added
Removed
Modified
  • v2x

    v20 v21  
    44V2X is a technology to allow a vehicle to communicate with other items. This uses a special RF Radio.
    55
    6 More details are provided in the [https://www.gateworks.com/vehicle-v2x/ Gateworks V2X Guide]
     6More V2X generics are provided in the [https://www.gateworks.com/vehicle-v2x/ Gateworks V2X Guide]
    77
    88[[Image(som301.png,200px)]]
     
    5454== GPS PPS Signal
    5555The GPS PPS Signal uses pin 49.
    56 
    57 == SOM-301x Datasheet / Manual
    58  * [https://www.unex.com.tw/products/v2x/v2xsolution/v2xmodule]
    59  * [https://www.unex.com.tw/guide/SOM-301x.pdf Manual]
    6056
    6157== UART Information for GW73xx
     
    10197
    10298If the V2X support requires a kernel driver then it will need a device-tree binding of its own in which case one can use a dt overlay or customize the device tree.
     99
     100= SOM-352
     101
     102Unex has released a newer V2X Radio, SOM-352. Link: [https://unex.com.tw/en/product/som/]
     103
     104NOTE: This requires at minimum a 5V modification to the Gateworks SBC to power the card. Please see details above on this page.
     105
     106Instructions for use:
     107
     1081. This device appears as a USB RNDS network device to the Linux OS running on the Gateworks SBC. It seems that the Ubuntu OS struggles with network naming related to enumerating this device. Therefore, in the Gateworks SBC u-boot, remove the following:
     109{{{
     110print bootargs
     111bootargs net.ifnames=0
     112setenv bootargs #CLEAR THE VARIABLE
     113saveenv
     114boot
     115}}}
     1161. Boot the Gateworks SBC and check to see if the radio is detected with the lsusb command and the following 3 devices:
     117{{{
     118Bus 001 Device 014: ID 0424:3803 Microchip Technology, Inc. (formerly SMSC)
     119Bus 001 Device 015: ID 04d8:00dd Microchip Technology, Inc. MCP2221(a) UART/I2C Bridge
     120Bus 001 Device 016: ID 1d6b:0104 Linux Foundation Multifunction Composite Gadget
     121
     122}}}
     1231. Verify the radio interface was created with the ifconfig -a command: (something like enx162408f5cc4c below)
     124{{{
     125root@noble-venice:~# ifconfig -a
     126end0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
     127        ether 00:d0:12:8a:f8:35  txqueuelen 1000  (Ethernet)
     128        RX packets 0  bytes 0 (0.0 B)
     129        RX errors 0  dropped 0  overruns 0  frame 0
     130        TX packets 0  bytes 0 (0.0 B)
     131        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     132
     133enx162408f5cc4c: flags=4098<BROADCAST,MULTICAST>  mtu 1500
     134        ether 16:24:08:f5:cc:4c  txqueuelen 1000  (Ethernet)
     135        RX packets 0  bytes 0 (0.0 B)
     136        RX errors 0  dropped 0  overruns 0  frame 0
     137        TX packets 0  bytes 0 (0.0 B)
     138        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     139
     140lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
     141        inet 127.0.0.1  netmask 255.0.0.0
     142        inet6 ::1  prefixlen 128  scopeid 0x10<host>
     143        loop  txqueuelen 1000  (Local Loopback)
     144        RX packets 28504  bytes 2050016 (2.0 MB)
     145        RX errors 0  dropped 0  overruns 0  frame 0
     146        TX packets 28504  bytes 2050016 (2.0 MB)
     147        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     148
     149
     150}}}
     1511. Bring up the interface and assign an IP:
     152{{{
     153ifconfig enx162408f5cc4c up
     154ifconfig enx162408f5cc4c 192.168.1.1
     155}}}
     1561. The radio itself has an IP of 192.168.1.3 (even though the interface is 192.168.1.1). Try to ping 192.168.1.3. NOTE: If an ethernet cable is connected to the Gateworks SBC, disconnect it for this test to avoid any network confusion.
     157{{{
     158root@noble-venice:~# ping 192.168.1.3
     159PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
     16064 bytes from 192.168.1.3: icmp_seq=1 ttl=64 time=1.05 ms
     16164 bytes from 192.168.1.3: icmp_seq=2 ttl=64 time=0.552 ms
     162^C
     163--- 192.168.1.3 ping statistics ---
     1642 packets transmitted, 2 received, 0% packet loss, time 1002ms
     165rtt min/avg/max/mdev = 0.552/0.801/1.050/0.249 ms
     166root@noble-venice:~#
     167}}}
     1681. SSH into the V2X radio from the Gateworks SBC (root is username, no password)
     169{{{
     170root@noble-venice:~# ssh root@192.168.1.3
     171root@autotalks:~#
     172}}}
     1731. Run the V2X example command while SSH'd into the radio, signified by the autotalks command prompt:
     174{{{
     175root@autotalks:~# v2x-example
     176Found file /usr/bin/sw_config_internal.txt
     177Platform without TEE support
     178Found file /usr/bin/sw_config.txt
     179Using default value log_level_host=3
     180ivn_service_broadcast_disable and v2x_service_broadcast_disable will affect only server application
     181Device on M3
     182Shared memory ll_init done, memory size is 4096[bytes], rx size 2048[bytes], tx size 2048[bytes]
     183ll_interface_init done - app_role 2
     184GNSS device source config: internal poti disable = 1 internal baud rate = 0 internal 1Hz cycle ender = 0 internal poti type = 1 internal poti message format 1
     185           external baud rate = 0 external device=1 external port = 0 external 1Hz cycle ender = 0 external poti type = 1 external poti message format 1
     186GNSS device source config: offset seconds = 0
     187Device and services are registered and initialized
     188Device is alive
     189Using default value lmac_rf_config_file_location=1
     190Using default value force_csk_generate=0
     191Using default value log_level_device=3
     192Using default value log_burst_size=10
     193Using default value lmac_loopback_enable=0
     194Using default value lmac_phy_loopback_enable=0
     195Using default value lmac_trace_verbose=0
     196Using default value swc_version=1
     197Using default value lmac_ranging_enable=0
     198Using default value lmac_dcc_indication_enable=1
     199Using default value physical_interfaces_in_use=0
     200Using default value lmac_diversity_enable=0
     201Using default value lmac_tx_q_descriptors_count=8
     202Using default value lmac_rx_q_descriptors_count=8
     203Time sync is disabled for application role CLIENT Or not main process
     204WDM frequency for channel A: 5880 MHz
     205Could not attach interface 0
     206
     207________________
     208Going to send: 'Hello No. 1'
     209
     210---TX Socket Statistics---
     211Successfully sent: 1
     212Failed to be sent : 0
     213Total sent: 1
     214Successfully received: 0
     215Dropped: 0
     216Total received: 0
     217Previous packet tsf usec : 0
     218________________
     219
     220
     221root@autotalks:~#
     222
     223}}}
     224
     225=== Troubleshooting SOM-352
     2261. Verify the device is seen on lsusb:
     227{{{
     228Bus 001 Device 014: ID 0424:3803 Microchip Technology, Inc. (formerly SMSC)
     229Bus 001 Device 015: ID 04d8:00dd Microchip Technology, Inc. MCP2221(a) UART/I2C Bridge
     230Bus 001 Device 016: ID 1d6b:0104 Linux Foundation Multifunction Composite Gadget
     231
     232}}}
     2331. Verify the RNDIS driver found the radio and created a network interface:
     234{{{
     235root@noble-venice:~# dmesg | grep rndis
     236[   18.009833] rndis_host 1-1.1.1.1:1.0 eth0: register 'rndis_host' at usb-ci_hdrc.0-1.1.1.1, RNDIS device, 22:ee:ea:b0:1c:91
     237[   18.009989] usbcore: registered new interface driver rndis_host
     238[   18.030099] rndis_host 1-1.1.1.1:1.0 enx22eeeab01c91: renamed from eth0
     239
     240}}}
     2411. Verify the RNDIS module is seen:
     242{{{
     243root@noble-venice:~# lsmod | grep rndis
     244rndis_host             24576  0
     245cdc_ether              20480  1 rndis_host
     246usbnet                 57344  2 rndis_host,cdc_ether
     247}}}
     2481. Cannot ssh into 192.168.1.3? Be sure all other network interfaces are removed (unplug ethernet cables, unplug !WiFi cards, etc)