internal:proddocs:3155
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| internal:proddocs:3155 [2023/07/12 14:33] – external edit 127.0.0.1 | internal:proddocs:3155 [2023/11/27 10:16] (current) – kacper | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Programming ====== | ====== Programming ====== | ||
| | | ||
| - | Connect the Modbus | + | Connect the Modbus to the NMEA Network and STM32 Programmer |
| - | {{: | + | {{: |
| - | The Pink Stripe | + | Turn on 12V NMEA Power. |
| - | Connect the CAN Power source 12volt from the power supply | + | |
| - | Open AVR Studio 5.1 | + | {{: |
| - | {{: | + | Open STM32CubeProgrammer and open the programming tab |
| - | Upon opening of AVR Studio 5.1 you will be greeted with these two screens | + | {{: |
| - | After the program has loaded click “Tools” then “AVR Programming” | + | |
| - | | + | |
| - | {{: | + | |
| - | You will then see this screen | + | Connect to the Unit and select the file path: S: |
| - | Select the tool you wish to use for programming your device, in this case we need to use the “AVRISP mkII” so make sure this is selected from the drop down menu. | + | {{: |
| - | Select the device you wish to use, in this case we are using the “Atmel AT90CAN64” so make sure this is selected from the drop down menu. | + | click 'Start Programming' |
| - | The interface we will to use is “ISP” (in system programming) | + | Open Monex and click "Get Serial" |
| - | <note important> | + | {{:internal: |
| - | </ | + | |
| - | Then Click the Apply button. | + | |
| - | | + | Now go to the Programming tab |
| - | After you have clicked Apply this window should now appear. | + | {{: |
| - | Set the ISP Clock frequency to 125khz if not already set. | + | |
| - | {{: | + | Make sure the Target Device Instance matched the switch on the unit and click 3155 |
| - | After the ISP Clock is set you when then need to click on fuses in the left hand menu | + | {{: |
| - | You shall then be greeted with this screen where we will need to change some values. | + | Press Reprogram! and select S: |
| - | + | ||
| - | Check you have selected the required parameters then click the “Program” button | + | |
| - | | + | The unit will start to program, wait until "Re-booting to Application Code" is displayed, the unit will not have the Blue led flash every 2 seconds. |
| - | * Starting operation read registers | + | Go into Monex and press 'Get ProdInfo' |
| - | * Reading register EXTENDED...OK | + | |
| - | * Reading register HIGH...OK | + | |
| - | * Reading register LOW...OK | + | |
| - | * Read register LOW...OK | + | |
| - | * Read registers...OK | + | |
| - | If everything went OK then this message | + | |
| - | After you have successfully set and programmed the fuses it is now the time to load the firmware onto the device. | + | {{: |
| - | Now select the file to flash | + | |
| - | Click the memories tab | + | |
| - | {{: | ||
| - | |||
| - | It will then open this dialogue. Select the latest version .hex file from the Modbus gateway folder and click “Open” | ||
| - | Check you have selected the correct .hex file from the folder and that your settings are correct | ||
| - | |||
| - | | ||
| - | |||
| - | If you are satisfied that the correct .hex file is selected and your fuse and settings are correct then we can proceed in | ||
| - | flashing the .hex file to the Atmel 90CAN64 | ||
| - | Click “Program” | ||
| - | |||
| - | {{: | ||
| - | |||
| - | After Programming has completed you will be presented with this output at the bottom of the window | ||
| - | You can now close AVR Studio 5.1 and turn off the CAN Power at the power supply you may now disconnect the | ||
| - | CAN power source and the 6 pin AVR ISP plug from PL2 on the Modbus gateway. | ||
| - | |||
| - | |||
| - | Apply glue to the led's on board, then insert the yellow button. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | Insert side (cut to size) panel and secure cable ties in position | ||
| - | |||
| - | {{: | ||
| - | |||
| - | Insert the front panel, final side panel check position is level | ||
| - | |||
| - | {{: | ||
| - | |||
| - | Click all other parts together partially then insert spring into orange clip and slide into position. | ||
| - | |||
| - | {{: | ||
| - | |||
| - | | ||
| - | |||
| - | label unit with the required label and print manual | ||
| - | |||
| - | Select Monex and set serial number the check Prod info. | ||
| - | |||
| - | {{: | ||
| ====== Test Procedure ====== | ====== Test Procedure ====== | ||
| Line 119: | Line 61: | ||
| Connect the USB to RS-485 Converter to the 3155 screw in terminal blocks as shown, tighten with flat head screwdriver (**not too hard**). | Connect the USB to RS-485 Converter to the 3155 screw in terminal blocks as shown, tighten with flat head screwdriver (**not too hard**). | ||
| - | {{: | + | {{: |
| ==== Step 2 ==== | ==== Step 2 ==== | ||
| Line 184: | Line 126: | ||
| {{: | {{: | ||
| - | **If a Values are received successfully then testing is completed** | + | Now test the modbus configuration by setting the Hex switch on the 3155 to ' |
| - | ==== Packaging ==== | + | Set Qmodbus master settings again to 4,800 Baudrate, Odd Parity, 1 stop bit |
| - | {{: | + | {{: |
| + | |||
| + | the hex switch should have been left on ' | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Request the data again and the data shown should be the same as above | ||
| + | |||
| + | **If a Values are received successfully then testing is completed - RETURN SWITCH TO 0 AND PRESS MAGNET TO DEVICE TO RETURN TO DEFAULT SETTINGS** | ||
| + | |||
| + | ==== Packaging ==== | ||
| Use RPT112 | Use RPT112 | ||
internal/proddocs/3155.1689172436.txt.gz · Last modified: 2023/07/12 14:33 by 127.0.0.1